ITS BROKEN
This commit is contained in:
12
src/lua.h
12
src/lua.h
@@ -179,8 +179,16 @@ class Lua {
|
||||
int m_metatableReference = LUA_NOREF;
|
||||
int m_luascriptsReference = LUA_NOREF;
|
||||
int m_luaSceneScriptsReference = LUA_NOREF;
|
||||
|
||||
// Event mask now stored inline in GameObject::eventMask
|
||||
|
||||
// Bytecode references for per-object re-execution.
|
||||
// Points into splashpack data which stays in memory for the scene lifetime.
|
||||
static constexpr int MAX_LUA_FILES = 32;
|
||||
struct BytecodeRef {
|
||||
const char* code;
|
||||
size_t len;
|
||||
};
|
||||
BytecodeRef m_bytecodeRefs[MAX_LUA_FILES];
|
||||
int m_bytecodeRefCount = 0;
|
||||
|
||||
template <int methodId, typename methodName>
|
||||
friend struct FunctionWrapper;
|
||||
|
||||
Reference in New Issue
Block a user