public override void Setup(IDictionary<string,object> table) { table.AddNotPresent("assert", (Func<object, object, object[], Varargs>)Assert); table.AddNotPresent("collectgarbage", (Action<string, string>)CollectGarbage); table.AddNotPresent("dofile", (Func<string, object>)DoFile); table.AddNotPresent("error", (Action<object, object>)Error); table.AddNotPresent("_ENV", table); table.AddNotPresent("_G", table); table.AddNotPresent("getfenv", (Func<object, object>)GetFEnv); table.AddNotPresent("getmetatable", (Func<object, object>)GetMetatable); table.AddNotPresent("ipairs", (Func<LuaTable, Varargs>)IPairs); table.AddNotPresent("load", (Func<Delegate, string, Varargs>)Load); table.AddNotPresent("loadfile", (Func<string, Varargs>)LoadFile); table.AddNotPresent("loadstring", (Func<string, string, Varargs>)LoadString); table.AddNotPresent("next", (Func<LuaTable, object, Varargs>)Next); table.AddNotPresent("pairs", (Func<LuaTable, Varargs>)Pairs); table.AddNotPresent("pcall", (Func<Delegate, object[], Varargs>)PCall); table.AddNotPresent("print", (Action<object[]>)Print); table.AddNotPresent("rawequal", (Func<object, object, bool>)RawEqual); table.AddNotPresent("rawget", (Func<LuaTable, object, object>)RawGet); table.AddNotPresent("rawset", (Func<LuaTable, object, object, object>)RawSet); table.AddNotPresent("require", (Func<string, LuaTable>)Context.RequireLibrary); table.AddNotPresent("select", (Func<object, object[], Varargs>)Select); table.AddNotPresent("setfenv", (Func<object, LuaTable, object>)SetFEnv); table.AddNotPresent("setmetatable", (Func<LuaTable, LuaTable, LuaTable>)SetMetatable); table.AddNotPresent("tonumber", (Func<object, object, object>)ToNumber); table.AddNotPresent("tostring", (Func<object, object>)ToString); table.AddNotPresent("type", (Func<object, string>)Type); table.AddNotPresent("unpack", (Func<LuaTable, object, object, Varargs>)Unpack); table.AddNotPresent("_VERSION", Constant.LUA_VERSION); table.AddNotPresent("xpcall", (Func<Delegate, Delegate, Varargs>)XPCall); }