aboutsummaryrefslogtreecommitdiff
path: root/src/scriptapi_env.cpp
Commit message (Collapse)AuthorAge
* Fix nearly all warningskwolekr2013-05-19
|
* fix bug in scriptapi line_of_sightsapier2013-04-10
| | | | fix warnings for pathfinder debug traces
* Add Dijkstra A* and A* without prefetching pathfind algorithmssapier2013-04-06
|
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
|
* split scriptapi.cppsapier2013-03-05
Remerge some files in order to reduce number of additional files Make necessary changes for split, rename files, reorganize some bits
n class="hl ppc">#include "mods.h" #include "json/json.h" #ifndef SERVERLIST_HEADER #define SERVERLIST_HEADER typedef Json::Value ServerListSpec; namespace ServerList { std::vector<ServerListSpec> getLocal(); #if USE_CURL std::vector<ServerListSpec> getOnline(); #endif bool deleteEntry(ServerListSpec server); bool insert(ServerListSpec server); std::vector<ServerListSpec> deSerialize(std::string liststring); std::string serialize(std::vector<ServerListSpec>); std::vector<ServerListSpec> deSerializeJson(std::string liststring); std::string serializeJson(std::vector<ServerListSpec>); #if USE_CURL void sendAnnounce(std::string action = "", const std::vector<std::string> & clients_names = std::vector<std::string>(), double uptime = 0, u32 game_time = 0,std::string gameid = "", std::vector<ModSpec> mods = std::vector<ModSpec>()); #endif } //ServerList namespace #endif