LuaInterface.ObjectTranslator.getTable C# (CSharp) Méthode

getTable() private méthode

private getTable ( IntPtr luaState, int index ) : LuaTable
luaState IntPtr
index int
Résultat LuaTable
        internal LuaTable getTable(IntPtr luaState,int index)
        {
            LuaDLL.lua_pushvalue(luaState,index);
            return new LuaTable(LuaDLL.lua_ref(luaState,1),interpreter);
        }

Usage Example

Exemple #1
0
        /*
         * Creates a new unnamed table
         */
        public LuaTable NewTable()
        {
            int oldTop = LuaDLL.lua_gettop(luaState);

            LuaDLL.lua_newtable(luaState);
            LuaTable table = translator.getTable(luaState, -1);

            LuaDLL.lua_settop(luaState, oldTop);

            table.IsOrphaned = true;

            return(table);
        }
All Usage Examples Of LuaInterface.ObjectTranslator::getTable