Esempio n. 1
0
        private IEnumerator Startup(IObserver <bool> observer)
        {
            if (!App.isMasterInit)
            {
                yield return(Observable.NextFrame(FrameCountType.EndOfFrame).StartAsCoroutine());
            }
            MapManager mm = null;

            if (RetentionData.GetData() != null)
            {
                mm = ((!RetentionData.GetData().ContainsKey("sortieMapManager")) ? ((MapManager)RetentionData.GetData()["rebellionMapManager"]) : ((MapManager)RetentionData.GetData()["sortieMapManager"]));
            }
            _clsSortieMapTaskManager.Startup((!(SingletonMonoBehaviour <MapTransitionCutManager> .Instance != null)) ? null : SingletonMonoBehaviour <MapTransitionCutManager> .Instance.GetPrefabAreaMap(), mm, OnSetMapManager);
            RetentionData.Release();
            Mst_DataManager.Instance.MakeUIBattleMaster(_clsMapManager.Map.MstId);
            yield return(Observable.NextFrame(FrameCountType.EndOfFrame).StartAsCoroutine());

            if (SingletonMonoBehaviour <MapTransitionCutManager> .Instance != null)
            {
                bool isWait = true;
                SingletonMonoBehaviour <MapTransitionCutManager> .Instance.Discard(delegate
                {
                    isWait = false;
                });

                while (isWait)
                {
                    yield return(new WaitForEndOfFrame());
                }
            }
            observer.OnNext(value: true);
            observer.OnCompleted();
        }
Esempio n. 2
0
 private void SetStartupData()
 {
     if (RetentionData.GetData() != null)
     {
         Hashtable data = RetentionData.GetData();
         _clsData.Difficlty   = (DifficultKind)(int)data["difficulty"];
         _clsData.isInherit   = (data.ContainsKey("isInherit") ? true : false);
         _clsData.AdmiralName = ((!data.ContainsKey("isInherit")) ? string.Empty : App.GetTitleManager().UserName);
     }
     RetentionData.Release();
 }
 private void SetStartupData()
 {
     if (RetentionData.GetData() != null)
     {
         Hashtable data = RetentionData.GetData();
         StartupTaskManager._clsData.Difficlty   = (DifficultKind)((int)data.get_Item("difficulty"));
         StartupTaskManager._clsData.isInherit   = data.ContainsKey("isInherit");
         StartupTaskManager._clsData.AdmiralName = ((!data.ContainsKey("isInherit")) ? string.Empty : App.GetTitleManager().UserName);
     }
     RetentionData.Release();
 }
        private void Start()
        {
            this._SM       = SingletonMonoBehaviour <SoundManager> .Instance;
            this._instance = VitaSaveManager.Instance;
            this._instance.Open(this);
            this._Label_status = GameObject.Find("Label_status").GetComponent <UILabel>();
            this.BackScene     = Generics.Scene.PortTop;
            this._Set_Status(SaveLoad.Now_State.Idle);
            this._SceneName = Application.get_loadedLevelName();
            Debug.Log("Application.loadedLevelName: " + this._SceneName);
            Hashtable hashtable = null;

            if (RetentionData.GetData() != null)
            {
                hashtable = RetentionData.GetData();
            }
            if (hashtable == null || (int)hashtable.get_Item("rootType") != 1)
            {
                this._Set_Execute_Mode(SaveLoad.Execute_Mode.Save_Mode);
                if ((int)hashtable.get_Item("rootType") == 21)
                {
                    this.BackScene = Generics.Scene.Strategy;
                }
            }
            else
            {
                this._Set_Execute_Mode(SaveLoad.Execute_Mode.Load_Mode);
            }
            if (hashtable != null)
            {
                RetentionData.Release();
            }
            if (this._Execute_Mode == SaveLoad.Execute_Mode.Load_Mode)
            {
                DebugUtils.SLog("ロードを実行します");
                this._DO_LOAD();
            }
            else if (this._Execute_Mode == SaveLoad.Execute_Mode.Save_Mode)
            {
                Debug.Log("セーブを実行します");
                this._DO_SAVE();
                SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null, true, true);
            }
        }
Esempio n. 5
0
        private void Start()
        {
            _SM       = SingletonMonoBehaviour <SoundManager> .Instance;
            _instance = VitaSaveManager.Instance;
            _instance.Open(this);
            _Label_status = GameObject.Find("Label_status").GetComponent <UILabel>();
            BackScene     = Generics.Scene.PortTop;
            _Set_Status(Now_State.Idle);
            _SceneName = Application.loadedLevelName;
            Debug.Log("Application.loadedLevelName: " + _SceneName);
            Hashtable hashtable = null;

            if (RetentionData.GetData() != null)
            {
                hashtable = RetentionData.GetData();
            }
            if (hashtable == null || (int)hashtable["rootType"] != 1)
            {
                _Set_Execute_Mode(Execute_Mode.Save_Mode);
                if ((int)hashtable["rootType"] == 21)
                {
                    BackScene = Generics.Scene.Strategy;
                }
            }
            else
            {
                _Set_Execute_Mode(Execute_Mode.Load_Mode);
            }
            if (hashtable != null)
            {
                RetentionData.Release();
            }
            if (_Execute_Mode == Execute_Mode.Load_Mode)
            {
                DebugUtils.SLog("ロ\u30fcドを実行します");
                _DO_LOAD();
            }
            else if (_Execute_Mode == Execute_Mode.Save_Mode)
            {
                Debug.Log("セ\u30fcブを実行します");
                _DO_SAVE();
                SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null);
            }
        }
Esempio n. 6
0
        private void InitBattleData()
        {
            if (RetentionData.GetData() != null)
            {
                _iRootType = (Generics.BattleRootType)(int) RetentionData.GetData()["rootType"];
                switch (_iRootType)
                {
                case Generics.BattleRootType.SortieMap:
                    InitSortieBattle();
                    break;

                case Generics.BattleRootType.Practice:
                    InitPracticeBattle();
                    break;

                case Generics.BattleRootType.Rebellion:
                    InitRebellionBattle();
                    break;
                }
                RetentionData.Release();
            }
            SetSkyType(_clsBattleManager);
        }