| 1222 | } |
| 1223 | |
| 1224 | static 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 |
| 1235 | static void get_zone_keys(color_ostream &out, ostringstream &keys, df::building_civzonest *zone, bool add_label, bool add_properties) { |
no test coverage detected