Added basic lua wrapper, currently can't retrieve from registry
This commit is contained in:
20
src/lua.h
20
src/lua.h
@@ -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
|
||||
Reference in New Issue
Block a user