Created and implemented scenemanager, include cleanup, fixed winbuild?

This commit is contained in:
2025-04-14 23:53:31 +02:00
parent f8ab161270
commit b5b0ae464c
17 changed files with 346 additions and 266 deletions

View File

@@ -5,16 +5,28 @@
#include "gameobject.hh"
namespace psxsplash {
struct LuaFile {
union {
uint32_t luaCodeOffset;
const char* luaCode;
};
uint32_t length;
};
class Lua {
public:
void Init();
void LoadLuaFile(const char* code, size_t len);
void LoadLuaFile(const char* code, size_t len, int index);
void RegisterGameObject(GameObject* go);
void CallOnCollide(GameObject* self, GameObject* other);
private:
void PushGameObject(GameObject* go);
psyqo::Lua L;
int m_metatableReference;
int m_luascriptsReference;
};
} // namespace psxsplash