private void getDefinitions()
        {
            Dictionary <int, PartyGameDefinition> dictionary = Service.Get <IGameData>().Get <Dictionary <int, PartyGameDefinition> >();

            if (dictionary.ContainsKey(3))
            {
                partyGameDefinition   = dictionary[3];
                danceBattleDefinition = (DanceBattleDefinition)partyGameDefinition.GameData;
                lobbyDefinition       = (PartyGameLobbyMmoItemTeamDefinition)partyGameDefinition.LobbyData;
                launcherDefinition    = PartyGameUtils.GetPartyGameLauncherForPartyGameId(partyGameDefinition.Id);
            }
        }
Exemplo n.º 2
0
        public static PartyGameLauncherDefinition GetPartyGameLauncherForPartyGameId(int partyGameId)
        {
            PartyGameLauncherDefinition result = null;
            Dictionary <int, PartyGameLauncherDefinition> dictionary = Service.Get <IGameData>().Get <Dictionary <int, PartyGameLauncherDefinition> >();

            for (int i = 0; i < dictionary.Count; i++)
            {
                if (dictionary[i].PartyGame.Id == partyGameId)
                {
                    result = dictionary[i];
                    break;
                }
            }
            return(result);
        }