#ifndef ROCKETCORELUACONTEXTDOCUMENTSPROXY_H #define ROCKETCORELUACONTEXTDOCUMENTSPROXY_H /* A proxy table with key of string and int and a value of Document Read only */ #include #include #include namespace Rocket { namespace Core { namespace Lua { //where owner is the context that we should look information from struct ContextDocumentsProxy { Context* owner; }; template<> void LuaType::extra_init(lua_State* L, int metatable_index); int ContextDocumentsProxy__index(lua_State* L); //method int ContextDocumentsProxyGetTable(lua_State* L, ContextDocumentsProxy* obj); RegType ContextDocumentsProxyMethods[]; luaL_reg ContextDocumentsProxyGetters[]; luaL_reg ContextDocumentsProxySetters[]; } } } #endif