Exemple #1
0
        void ProcessSecondStage(ApiInfo rpInfo)
        {
            switch (rpInfo.Api)
            {
            case "api_req_battle_midnight/battle":
            case "api_req_practice/midnight_battle":
                Second = new NightNormalStage(this, rpInfo);
                break;

            case "api_req_combined_battle/midnight_battle": Second = new FriendCombinedFleetNightNormalStage(this, rpInfo); break;

            case "api_req_combined_battle/ec_midnight_battle": Second = new EnemyCombinedFleetNight(this, rpInfo); break;
            }

            Second.Process(rpInfo, First);
            InheritFromPreviousStage(Second);
            Second.Postprocess();
            Result.Update(First, Second);

            CurrentStage = Second;
            OnPropertyChanged(nameof(Second));
            OnPropertyChanged(nameof(CurrentStage));
        }
        void ProcessSecondStage(ApiInfo rpInfo)
        {
            switch (rpInfo.Api)
            {
                case "api_req_battle_midnight/battle":
                case "api_req_practice/midnight_battle":
                    Second = new NightNormalStage(this, rpInfo);
                    break;

                case "api_req_combined_battle/midnight_battle": Second = new FriendCombinedFleetNightNormalStage(this, rpInfo); break;

                case "api_req_combined_battle/ec_midnight_battle": Second = new EnemyCombinedFleetNight(this, rpInfo); break;
            }

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

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