#ifndef LUA_OBJECTS_H #define LUA_OBJECTS_H #include #include #include #include struct lua_State; namespace eressea { class objects { public: objects(struct attrib ** attribs) : mAttribPtr(attribs) {} luabind::object get(const char * name); // void set(const char * name, int type, luabind::object& value); template void set(const char * name, V value); private: struct attrib ** mAttribPtr; }; template eressea::objects get_objects(const T& parent) { return eressea::objects(&const_cast(parent.attribs)); } }; #endif