예제 #1
0
        public bool Load(bool logging = true)
        {
            bool succeeded = true;

            ResourceManager.CopyDocumentFromArchive("Record/" + ShipParameter.FileName, MasterPath + "\\" + ShipParameter.FileName);

            succeeded &= EnemyFleet.Load(MasterPath);
            succeeded &= ShipParameter.Load(MasterPath);
            succeeded &= Construction.Load(MasterPath);
            succeeded &= ShipDrop.Load(MasterPath);
            succeeded &= Development.Load(MasterPath);
            succeeded &= Resource.Load(MasterPath);

            if (logging)
            {
                if (succeeded)
                {
                    Utility.Logger.Add(2, "レコードをロードしました。");
                }
                else
                {
                    Utility.Logger.Add(3, "レコードのロードに失敗しました。");
                }
            }

            return(succeeded);
        }
예제 #2
0
        public bool Load(bool logging = true)
        {
            bool succeeded = true;

            ResourceManager.CopyFromArchive("Record/" + ShipParameter.FileName, MasterPath + "\\" + ShipParameter.FileName);

            succeeded &= EnemyFleet.Load(MasterPath);
            succeeded &= ShipParameter.Load(MasterPath);
            succeeded &= Construction.Load(MasterPath);
            succeeded &= ShipDrop.Load(MasterPath);
            succeeded &= Development.Load(MasterPath);
            succeeded &= Resource.Load(MasterPath);
            if (logging)
            {
                if (succeeded)
                {
                    Utility.Logger.Add(2, LoggerRes.LoadedRecords);
                }
                else
                {
                    Utility.Logger.Add(3, LoggerRes.FailedLoadingRecords);
                }
            }
            return(succeeded);
        }
예제 #3
0
        public void Load()
        {
            bool successed = true;

            successed &= EnemyFleet.Load(MasterPath);
            successed &= ShipParameter.Load(MasterPath);
            //successed &= Construction.Load( MasterPath );
            //successed &= ShipDrop.Load( MasterPath );
            //successed &= Development.Load( MasterPath );
            //successed &= Resource.Load( MasterPath );

            if (successed)
            {
                Utility.Logger.Add(2, "レコードをロードしました。");
            }
            else
            {
                Utility.Logger.Add(3, "レコードのロードに失敗しました。");
            }
        }