Esempio n. 1
0
        protected void UpdateMode()
        {
            if (_iModeReq == StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF)
            {
                return;
            }
            switch (_iModeReq)
            {
            case StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_ST:
                if (_clsTasks.Open(_clsTaskEvent) < 0)
                {
                    return;
                }
                break;

            case StrategyRebellionTaskManagerMode.Organize:
                if (_clsTasks.Open(_clsTaskOrgnaize) < 0)
                {
                    return;
                }
                break;
            }
            _iMode    = _iModeReq;
            _iModeReq = StrategyRebellionTaskManagerMode.StrategyRebellionTaskManager_BEF;
        }
Esempio n. 2
0
        protected void UpdateMode()
        {
            if (_iPhaseReq == ArsenalPhase.BattlePhase_BEF)
            {
                return;
            }
            switch (_iPhaseReq)
            {
            case ArsenalPhase.BattlePhase_ST:
                if (_clsTasks.Open(_clsArsenal) < 0)
                {
                    return;
                }
                break;

            case ArsenalPhase.NormalConstruct:
                if (_clsTasks.Open(_clsConstruct) < 0)
                {
                    return;
                }
                break;

            case ArsenalPhase.List:
                if (_clsTasks.Open(_clsList) < 0)
                {
                    return;
                }
                break;
            }
            _iPhase    = _iPhaseReq;
            _iPhaseReq = ArsenalPhase.BattlePhase_BEF;
        }
        protected void UpdateMode()
        {
            if (_iModeReq == TitleTaskManagerMode.TitleTaskManagerMode_BEF)
            {
                return;
            }
            switch (_iModeReq)
            {
            case TitleTaskManagerMode.TitleTaskManagerMode_ST:
                if (_clsTasks.Open(_clsTaskOpening) < 0)
                {
                    return;
                }
                break;

            case TitleTaskManagerMode.SelectMode:
                if (_clsTasks.Open(_clsTaskSelectMode) < 0)
                {
                    return;
                }
                break;

            case TitleTaskManagerMode.NewGame:
                if (_clsTasks.Open(_clsTaskNewGame) < 0)
                {
                    return;
                }
                break;
            }
            _iMode    = _iModeReq;
            _iModeReq = TitleTaskManagerMode.TitleTaskManagerMode_BEF;
        }
Esempio n. 4
0
        protected void UpdateMode()
        {
            if (_iModeReq == InheritTaskManagerMode.InheritTaskManagerMode_BEF)
            {
                return;
            }
            switch (_iModeReq)
            {
            case InheritTaskManagerMode.InheritTaskManagerMode_ST:
                if (_clsTasks.Open(_clsSaveSelect) < 0)
                {
                    return;
                }
                break;

            case InheritTaskManagerMode.DoSave:
                if (_clsTasks.Open(_clsDoSave) < 0)
                {
                    return;
                }
                break;
            }
            _iMode    = _iModeReq;
            _iModeReq = InheritTaskManagerMode.InheritTaskManagerMode_BEF;
        }
Esempio n. 5
0
        protected void UpdateMode()
        {
            if (_iModeReq == StartupTaskManagerMode.StartupTaskManagerMode_BEF)
            {
                return;
            }
            switch (_iModeReq)
            {
            case StartupTaskManagerMode.StartupTaskManagerMode_ST:
                if (_clsTasks.Open(_clsTaskAdmiralInfo) < 0)
                {
                    return;
                }
                break;

            case StartupTaskManagerMode.FirstShipSelect:
                if (_clsTasks.Open(_clsTaskFirstShipSelect) < 0)
                {
                    return;
                }
                break;

            case StartupTaskManagerMode.PictureStoryShow:
                if (_clsTasks.Open(_clsTaskPictureStoryShow) < 0)
                {
                    return;
                }
                break;
            }
            _iMode    = _iModeReq;
            _iModeReq = StartupTaskManagerMode.StartupTaskManagerMode_BEF;
        }
        protected void UpdateMode()
        {
            if (_iModeReq == StrategyTaskManagerMode.StrategyTaskManagerMode_BEF)
            {
                return;
            }
            switch (_iModeReq)
            {
            case StrategyTaskManagerMode.StrategyTaskManagerMode_ST:
                if (_clsTasks.Open(_clsTopTask) < 0)
                {
                    return;
                }
                break;

            case StrategyTaskManagerMode.Rebellion:
                if (_clsTasks.Open(_clsRebellionTask) < 0)
                {
                    return;
                }
                break;
            }
            _iMode    = _iModeReq;
            _iModeReq = StrategyTaskManagerMode.StrategyTaskManagerMode_BEF;
        }
Esempio n. 7
0
    protected void UpdateMode()
    {
        if (_iPhaseReq == OrganizePhase.Phase_BEF)
        {
            return;
        }
        switch (_iPhaseReq)
        {
        case OrganizePhase.Phase_ST:
            if (_clsTasks.Open(_clsTop) < 0)
            {
                return;
            }
            break;

        case OrganizePhase.Detail:
            if (_clsTasks.Open(_clsDetail) < 0)
            {
                return;
            }
            break;

        case OrganizePhase.List:
            if (_clsTasks.Open(_clsList) < 0)
            {
                return;
            }
            break;

        case OrganizePhase.ListDetail:
            if (_clsTasks.Open(_clsListDetail) < 0)
            {
                return;
            }
            break;
        }
        _iPhase    = _iPhaseReq;
        _iPhaseReq = OrganizePhase.Phase_BEF;
        _clsTop.UpdateByModeChanging();
    }
Esempio n. 8
0
        protected void UpdateMode()
        {
            if (_iModeReq == SortieBattleMode.SortieBattleMode_BEF)
            {
                return;
            }
            switch (_iModeReq)
            {
            case SortieBattleMode.SortieBattleMode_ST:
                if (_clsTasks.Open(_clsSortieMapTaskManager) < 0)
                {
                    return;
                }
                break;

            case SortieBattleMode.Battle:
                if (_clsBattleTaskManager == null)
                {
                    _clsBattleTaskManager = BattleTaskManager.Instantiate(((Component)_clsSortieBattlePrefabFile.prefabBattleTaskManager).GetComponent <BattleTaskManager>(), delegate(ShipRecoveryType x)
                    {
                        _iRecoveryType = x;
                        ReqMode(SortieBattleMode.SortieBattleMode_ST);
                        Mem.DelComponentSafe(ref _clsBattleTaskManager);
                    });
                    CheckDiscardSortieMapTaskManager();
                }
                break;

            case SortieBattleMode.BattleCut:
                if (_clsBattleCutManager == null)
                {
                    _clsBattleCutManager = BattleCutManager.Instantiate(((Component)GetSortieBattlePrefabFile().prefabBattleCutManager).GetComponent <BattleCutManager>(), Vector3.left * 20f);
                    _clsBattleCutManager.StartBattleCut(GetMapManager(), delegate
                    {
                        _clsSortieMapTaskManager.GetCamera().isCulling = true;
                    }, delegate(ShipRecoveryType x)
                    {
                        _iRecoveryType = x;
                        ReqMode(SortieBattleMode.SortieBattleMode_ST);
                        Mem.DelComponentSafe(ref _clsBattleCutManager);
                    });
                    CheckDiscardSortieMapTaskManager();
                }
                break;
            }
            _iMode    = _iModeReq;
            _iModeReq = SortieBattleMode.SortieBattleMode_BEF;
        }