MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_reservation

Function get_reservation

plugins/blueprint.cpp:1224–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224static string get_reservation(color_ostream &out, df::building_civzonest *zone) {
1225 string res;
1226 Lua::CallLuaModuleFunction(out, "plugins.preserve-rooms", "preserve_rooms_getRoleAssignmentForZone",
1227 std::make_tuple(zone), 1, [&](lua_State *L) {
1228 if (lua_isstring(L, -1))
1229 res = lua_tostring(L, -1);
1230 });
1231 return res;
1232}
1233
1234// TODO: handle locations
1235static void get_zone_keys(color_ostream &out, ostringstream &keys, df::building_civzonest *zone, bool add_label, bool add_properties) {

Callers 1

get_zone_keysFunction · 0.85

Calls 2

CallLuaModuleFunctionFunction · 0.85
lua_isstringFunction · 0.85

Tested by

no test coverage detected