Esempio n. 1
0
        public static T Run <T>(LuaFuncRef FuncRef, params object[] Args)
        {
            int Top = GetTop();

            Run(FuncRef, 1, Args);
            T Ret = (T)Advanced.Get(L, 1, typeof(T));

            SetTop(Top);
            return(Ret);
        }
Esempio n. 2
0
        public static T Get <T>(LuaReference Table, string Name)
        {
            int Top = GetTop();

            Table.GetRef();
            LL.lua_getfield(L, -1, Name);
            T Val = (T)Advanced.Get(L, 1, typeof(T));

            SetTop(Top);
            return(Val);
        }