30 lines
488 B
C++
30 lines
488 B
C++
#ifndef LUA_DATA_H
|
|
#define LUA_DATA_H
|
|
#include "lua.hpp"
|
|
#include <iostream>
|
|
#include <Ogre.h>
|
|
#include <OgreSerializer.h>
|
|
#include <flecs.h>
|
|
namespace ECS
|
|
{
|
|
struct LuaData {
|
|
lua_State *L;
|
|
std::vector<int> setup_handlers;
|
|
int setup_handler();
|
|
int call_handler(const Ogre::String &event);
|
|
|
|
LuaData();
|
|
virtual ~LuaData();
|
|
void lateSetup();
|
|
};
|
|
struct LuaBase {
|
|
LuaData *mLua;
|
|
bool setup_called;
|
|
bool startup_called;
|
|
};
|
|
struct LuaModule {
|
|
LuaModule(flecs::world &ecs);
|
|
};
|
|
}
|
|
#endif
|