Remove luaaa dependency
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "world-build.h"
|
||||
#include "PlayerActionModule.h"
|
||||
#include "LuaData.h"
|
||||
#include "luaaa.hpp"
|
||||
#include "lua.hpp"
|
||||
extern "C" {
|
||||
int luaopen_lpeg(lua_State *L);
|
||||
}
|
||||
@@ -24,6 +24,7 @@ struct FooPosition {
|
||||
return value;
|
||||
}
|
||||
};
|
||||
#if 0
|
||||
namespace luaaa
|
||||
{
|
||||
template <> struct LuaStack<FooPosition> {
|
||||
@@ -67,6 +68,7 @@ template <> struct LuaStack<FooPosition> {
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
namespace ECS
|
||||
{
|
||||
struct LuaEcsEntity {
|
||||
@@ -270,6 +272,7 @@ LuaData::LuaData()
|
||||
luaVector3.fun("squaredDistance", &Ogre::Vector3::squaredDistance);
|
||||
luaVector3.fun("distance", &Ogre::Vector3::distance);
|
||||
#endif
|
||||
#if 0
|
||||
luaaa::LuaModule luaECS(L, "_ecs");
|
||||
luaECS.fun("position", [](int id) -> FooPosition {
|
||||
#if 0
|
||||
@@ -288,6 +291,7 @@ LuaData::LuaData()
|
||||
#endif
|
||||
return FooPosition();
|
||||
});
|
||||
#endif
|
||||
|
||||
lua_pushcfunction(L, [](lua_State *L) -> int {
|
||||
OgreAssert(false, "Crash function called");
|
||||
|
||||
Reference in New Issue
Block a user