|
|
@ -247,33 +247,33 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector <Plugin
|
|
|
|
DFhackCExport RPCService *plugin_rpcconnect(color_ostream &)
|
|
|
|
DFhackCExport RPCService *plugin_rpcconnect(color_ostream &)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RPCService *svc = new RPCService();
|
|
|
|
RPCService *svc = new RPCService();
|
|
|
|
svc->addFunction("GetMaterialList", GetMaterialList);
|
|
|
|
svc->addFunction("GetMaterialList", GetMaterialList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetGrowthList", GetGrowthList);
|
|
|
|
svc->addFunction("GetGrowthList", GetGrowthList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetBlockList", GetBlockList);
|
|
|
|
svc->addFunction("GetBlockList", GetBlockList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("CheckHashes", CheckHashes);
|
|
|
|
svc->addFunction("CheckHashes", CheckHashes, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetTiletypeList", GetTiletypeList);
|
|
|
|
svc->addFunction("GetTiletypeList", GetTiletypeList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetPlantList", GetPlantList);
|
|
|
|
svc->addFunction("GetPlantList", GetPlantList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetUnitList", GetUnitList);
|
|
|
|
svc->addFunction("GetUnitList", GetUnitList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetViewInfo", GetViewInfo);
|
|
|
|
svc->addFunction("GetViewInfo", GetViewInfo, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetMapInfo", GetMapInfo);
|
|
|
|
svc->addFunction("GetMapInfo", GetMapInfo, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("ResetMapHashes", ResetMapHashes);
|
|
|
|
svc->addFunction("ResetMapHashes", ResetMapHashes, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetItemList", GetItemList);
|
|
|
|
svc->addFunction("GetItemList", GetItemList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetBuildingDefList", GetBuildingDefList);
|
|
|
|
svc->addFunction("GetBuildingDefList", GetBuildingDefList, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetWorldMap", GetWorldMap);
|
|
|
|
svc->addFunction("GetWorldMap", GetWorldMap, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetWorldMapNew", GetWorldMapNew);
|
|
|
|
svc->addFunction("GetWorldMapNew", GetWorldMapNew, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetRegionMaps", GetRegionMaps);
|
|
|
|
svc->addFunction("GetRegionMaps", GetRegionMaps, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetRegionMapsNew", GetRegionMapsNew);
|
|
|
|
svc->addFunction("GetRegionMapsNew", GetRegionMapsNew, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetCreatureRaws", GetCreatureRaws);
|
|
|
|
svc->addFunction("GetCreatureRaws", GetCreatureRaws, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetPartialCreatureRaws", GetPartialCreatureRaws);
|
|
|
|
svc->addFunction("GetPartialCreatureRaws", GetPartialCreatureRaws, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetWorldMapCenter", GetWorldMapCenter);
|
|
|
|
svc->addFunction("GetWorldMapCenter", GetWorldMapCenter, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetPlantRaws", GetPlantRaws);
|
|
|
|
svc->addFunction("GetPlantRaws", GetPlantRaws, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetPartialPlantRaws", GetPartialPlantRaws);
|
|
|
|
svc->addFunction("GetPartialPlantRaws", GetPartialPlantRaws, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("CopyScreen", CopyScreen);
|
|
|
|
svc->addFunction("CopyScreen", CopyScreen, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("PassKeyboardEvent", PassKeyboardEvent);
|
|
|
|
svc->addFunction("PassKeyboardEvent", PassKeyboardEvent, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("SendDigCommand", SendDigCommand);
|
|
|
|
svc->addFunction("SendDigCommand", SendDigCommand, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("SetPauseState", SetPauseState);
|
|
|
|
svc->addFunction("SetPauseState", SetPauseState, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetPauseState", GetPauseState);
|
|
|
|
svc->addFunction("GetPauseState", GetPauseState, SF_ALLOW_REMOTE);
|
|
|
|
svc->addFunction("GetVersionInfo", GetVersionInfo);
|
|
|
|
svc->addFunction("GetVersionInfo", GetVersionInfo, SF_ALLOW_REMOTE);
|
|
|
|
return svc;
|
|
|
|
return svc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|