Esempio n. 1
0
        private void InitRegistry()
        {
            TValue mt = new TValue();

            G.Registry.V.SetHValue(new LuaTable(this));

            mt.SetThValue(this);
            G.Registry.V.HValue().SetInt(LuaDef.LUA_RIDX_MAINTHREAD, ref mt);

            mt.SetHValue(new LuaTable(this));
            G.Registry.V.HValue().SetInt(LuaDef.LUA_RIDX_GLOBALS, ref mt);
        }