Added two new stack disciplines to LuaStack

This commit is contained in:
2023-04-06 20:12:03 -04:00
parent b8df2bbc89
commit 7f000bc0fd
26 changed files with 401 additions and 271 deletions

View File

@@ -151,7 +151,7 @@ public:
// a deleted tangible. In that case, this function returns nullptr,
// but this is not a Lua error.
//
Tangible *tangible_get(const LuaStack &LS, LuaSlot slot, bool allowdel);
Tangible *tangible_get(const LuaCoreStack &LS, LuaSlot slot, bool allowdel);
// Get pointers to many tangibles.
//
@@ -240,7 +240,7 @@ public:
// Check if the world is authoritative.
//
bool is_authoritative() const { return LuaStack::is_authoritative(world_type_); }
bool is_authoritative() const { return LuaOldStack::is_authoritative(world_type_); }
// Get a table showing all outstanding HTTP requests.
//
@@ -560,7 +560,7 @@ private:
std::unique_ptr<eng::ostringstream> lthread_prints_;
friend class Tangible;
friend void global_set(LuaStack &LS0, const eng::string &gvar, LuaSlot value);
friend void global_set(LuaCoreStack &LS0, const eng::string &gvar, LuaSlot value);
friend int lfn_tangible_animate(lua_State *L);
friend int lfn_tangible_build(lua_State *L);
friend int lfn_tangible_redirect(lua_State *L);