#ifndef __SERVER_DATABASE_H__ #define __SERVER_DATABASE_H__ #include "common/def.h" #include #include 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 getMaps(); } #endif