12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __SERVER_DATABASE_H__
- #define __SERVER_DATABASE_H__
- #include "common/def.h"
- #include <list>
- #include <std_lib/database/database.h>
- namespace database {
- void init();
- void resetDataBase();
- bool addMap(MapInfo info);
- bool updateMap(MapInfo info);
- bool updateConfig(std::string name, Json::Value config);
- bool updateShadowMap(std::string map_id, Points map);
- bool delMap(std::string map_id);
- MapInfo getMap(std::string id);
- std::string getConfig(std::string name);
- std::map<std::string, MapInfo> getMaps();
- }
- #endif
|