Ejemplo n.º 1
0
        private static int CollectObject(LuaState luaState, ObjectTranslator translator)
        {
            int udata = LuaLib.LuaNetRawNetObj(luaState, 1);

            if (udata != -1)
            {
                translator.CollectObject(udata);
            }

            return(0);
        }
Ejemplo n.º 2
0
        /*
         * Gets the CLR object in the index position of the Lua stack. Returns
         * delegates as is.
         */
        internal object GetRawNetObject(LuaState luaState, int index)
        {
            int udata = LuaLib.LuaNetRawNetObj(luaState, index);

            return(udata != -1 ? objects [udata] : null);
        }