Beispiel #1
0
        ////////////////////////
        public static void Register(IntPtr L)
        {
            Lua_funcs = new LuaL_Reg[]
            {
                new LuaL_Reg("test", new  LuaCSFunction(test)),
                new LuaL_Reg("testerror", new  LuaCSFunction(testerror)),
            };

            LuaDLL.lua_newtable(L);
            LuaDLL.luaL_setfuncs(L, Lua_funcs, 0);
            LuaDLL.wlua_setglobal(L, "Game");
        }