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); }
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); }