static int GetGameMode(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GameModeConfig obj = (GameModeConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "GameModeConfig"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); GameMode o = obj.GetGameMode(arg0); LuaScriptMgr.PushObject(L, o); return(1); }