void ProcessSecondStage(ApiData rpData)
        {
            switch (rpData.Api)
            {
                case "api_req_battle_midnight/battle":
                case "api_req_practice/midnight_battle":
                    Second = new NightNormalStage(this, rpData);
                    break;

                case "api_req_combined_battle/midnight_battle": Second = new CombinedFleetNightNormalStage(this, rpData); break;
            }

            Second.Process(rpData);
            InheritFromPreviousStage(Second);
            Second.ProcessMVP();
            Result.Update(First, Second);

            CurrentStage = Second;
            OnPropertyChanged(nameof(Second));
            OnPropertyChanged(nameof(CurrentStage));
        }
Пример #2
0
        void ProcessSecondStage(ApiData rpData)
        {
            foreach (FriendShip rParticipant in Participants.FriendMain)
                rParticipant.IsMVP = false;
            if (Participants.FriendEscort != null)
                foreach (FriendShip rParticipant in Participants.FriendEscort)
                    rParticipant.IsMVP = false;

            switch (rpData.Api)
            {
                case "api_req_battle_midnight/battle":
                case "api_req_practice/midnight_battle":
                    Second = new NightNormalStage(this, rpData);
                    break;

                case "api_req_combined_battle/midnight_battle": Second = new CombinedFleetNightNormalStage(this, rpData); break;
            }

            Second.Process(rpData);
            Result.Update(First, Second);

            CurrentStage = Second;
            OnPropertyChanged(nameof(Second));
            OnPropertyChanged(nameof(CurrentStage));
        }