Lots of work on documenting class LuaStack

This commit is contained in:
2024-03-20 14:29:20 -04:00
parent 3d6b5224f3
commit bb83837377
7 changed files with 981 additions and 479 deletions

View File

@@ -62,7 +62,7 @@ World::World(WorldType wt) {
LS.settabletype(globtab, LUA_TT_GLOBALENV);
// Store the world type in the registry.
LS.rawset(LuaRegistry, "worldtype", wt);
LS.set_world_type(wt);
// Create the globaldb in the registry.
LS.rawset(LuaRegistry, "globaldb", LuaNewTable);
@@ -141,7 +141,7 @@ Tangible *World::tangible_get(const LuaCoreStack &LS, LuaSlot tab, bool allowdel
}
Tangible *World::tangible_make(const LuaCoreStack &LS0, LuaSlot database, int64_t id) {
assert(LS0.validpositiveint64(id));
assert(LS0.validpositiveinteger(id));
LuaVar metatab;
LuaExtStack LS(LS0.state(), metatab);