//whenever you want to have a type exposed to lua, you have to have it in here as //LuaType::Register(L); //It will be #included in the correct place in Interpreter.cpp, as to make this more like a macro file //THE ORDER DOES MATTER //You have to register a base class before any others can inherit from it LuaType::Register(L); LuaType::Register(L); LuaType::Register(L); LuaType::Register(L); LuaType::Register(L); LuaType::Register(L); //things that inherit from element LuaType::Register(L); LuaType::Register(L); LuaType::Register(L); LuaType::Register(L); LuaType::Register(L);