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

Function get_site_data

library/LuaApi.cpp:278–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276typedef PersistentDataItem (*get_data_fn)(lua_State *);
277
278static 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
286static PersistentDataItem get_world_data(lua_State *L) {
287 const char *key = lua_tostring(L, 1);

Callers

nothing calls this directly

Calls 1

luaL_argerrorFunction · 0.85

Tested by

no test coverage detected