Added basic lua wrapper, currently can't retrieve from registry

This commit is contained in:
2025-04-11 16:21:41 +02:00
parent f79b69de0a
commit 441acbb6c9
7 changed files with 242 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include <psyqo-lua/lua.hh>
#include "gameobject.hh"
namespace psxsplash {
class Lua {
public:
void Init();
void LoadLuaFile(const char* code, size_t len);
void RegisterGameObject(GameObject* go);
void CallOnCollide(GameObject* self, GameObject* other);
private:
void PushGameObject(GameObject* go);
psyqo::Lua L;
};
} // namespace psxsplash