Overhaul tangible_make to get rid of LuaOldStack

This commit is contained in:
2023-04-14 15:33:58 -04:00
parent 167dfe909f
commit 69f2fb6226
5 changed files with 35 additions and 46 deletions

View File

@@ -129,11 +129,12 @@ public:
// Make a tangible.
//
// You must provide a valid previously-unused ID. If pushdb is true, pushes
// the tangible's database onto the lua stack. Otherwise, leaves the lua
// stack untouched.
// You must provide a valid previously-unused ID. Otherwise, leaves the lua
// stack untouched. Returns a pointer to the C++ part of the tangible, and
// optionally stores the Lua part in a stack slot.
//
Tangible *tangible_make(lua_State *L, int64_t id, const eng::string &plane, bool pushdb);
Tangible *tangible_make(const LuaCoreStack &LS0, LuaSlot tan, int64_t id, const eng::string &plane);
Tangible *tangible_make(int64_t id, const eng::string &plane);
// Get a pointer to the specified tangible.
//