Пример #1
0
        /// <summary>
        /// 更新直前の艦船データをコピーして退避します。
        /// </summary>
        public void EvacuatePreviousShips()
        {
            if (Fleets.Values.Any(f => f != null && f.IsInSortie))
            {
                return;
            }

            PreviousShips       = new IDDictionary <ShipData>(KCDatabase.Instance.Ships.Values);
            IsAnchorageRepaired = Fleets.ToDictionary(f => f.Key, f => f.Value.CanAnchorageRepair);
            PreviousDockingID   = new HashSet <int>(KCDatabase.Instance.Docks.Values.Select(d => d.ShipID));
        }