| 276 | typedef PersistentDataItem (*get_data_fn)(lua_State *); |
| 277 | |
| 278 | static PersistentDataItem get_site_data(lua_State *L) { |
| 279 | const char *key = lua_tostring(L, 1); |
| 280 | if (!key) |
| 281 | luaL_argerror(L, 1, "no key specified"); |
| 282 | |
| 283 | return World::GetPersistentSiteData(key); |
| 284 | } |
| 285 | |
| 286 | static PersistentDataItem get_world_data(lua_State *L) { |
| 287 | const char *key = lua_tostring(L, 1); |
nothing calls this directly
no test coverage detected