示例#1
0
        private KCDatabase()
        {
            MasterShips      = new IDDictionary <ShipDataMaster>();
            ShipTypes        = new IDDictionary <ShipType>();
            MasterEquipments = new IDDictionary <EquipmentDataMaster>();
            EquipmentTypes   = new IDDictionary <EquipmentType>();
            MasterUseItems   = new IDDictionary <UseItemMaster>();
            MapArea          = new IDDictionary <MapAreaData>();
            MapInfo          = new IDDictionary <MapInfoData>();
            Mission          = new IDDictionary <MissionData>();

            m_updatedMasterShips         = new IDDictionary <ShipDataMaster>();
            m_updatedShipTypes           = new IDDictionary <ShipType>();
            m_updatedEquipmentDataMaster = new IDDictionary <EquipmentDataMaster>();
            m_updatedEquipmentTypes      = new IDDictionary <EquipmentType>();
            m_updatedUseItemMaster       = new IDDictionary <UseItemMaster>();
            m_updatedMapAreaData         = new IDDictionary <MapAreaData>();
            m_updatedMapInfoData         = new IDDictionary <MapInfoData>();
            m_updatedMissionData         = new IDDictionary <MissionData>();

            m_newAddedMasterShips         = new IDDictionary <ShipDataMaster>();
            m_newAddedShipTypes           = new IDDictionary <ShipType>();
            m_newAddedEquipmentDataMaster = new IDDictionary <EquipmentDataMaster>();
            m_newAddedEquipmentTypes      = new IDDictionary <EquipmentType>();
            m_newAddedUseItemMaster       = new IDDictionary <UseItemMaster>();
            m_newAddedMapAreaData         = new IDDictionary <MapAreaData>();
            m_newAddedMapInfoData         = new IDDictionary <MapInfoData>();
            m_newAddedMissionData         = new IDDictionary <MissionData>();
        }
示例#2
0
 private KCDatabase()
 {
     MasterShips         = new IDDictionary <ShipDataMaster>();
     ShipTypes           = new IDDictionary <ShipType>();
     ShipGraphics        = new IDDictionary <ShipGraphicData>();
     MasterEquipments    = new IDDictionary <EquipmentDataMaster>();
     EquipmentTypes      = new IDDictionary <EquipmentType>();
     Ships               = new IDDictionary <ShipData>();
     Equipments          = new IDDictionary <EquipmentData>();
     Admiral             = new AdmiralData();
     MasterUseItems      = new IDDictionary <UseItemMaster>();
     UseItems            = new IDDictionary <UseItem>();
     Arsenals            = new IDDictionary <ArsenalData>();
     Docks               = new IDDictionary <DockData>();
     Development         = new DevelopmentData();
     Fleet               = new FleetManager();
     Material            = new MaterialData();
     Quest               = new QuestManager();
     QuestProgress       = new QuestProgressManager();
     Battle              = new BattleManager();
     MapArea             = new IDDictionary <MapAreaData>();
     MapInfo             = new IDDictionary <MapInfoData>();
     Mission             = new IDDictionary <MissionData>();
     ShipGroup           = new ShipGroupManager();
     BaseAirCorps        = new IDDictionary <BaseAirCorpsData>();
     RelocatedEquipments = new IDDictionary <RelocationData>();
     FleetPreset         = new FleetPresetManager();
 }
示例#3
0
        public FleetManager()
        {
            Fleets = new IDDictionary <FleetData>();
            AnchorageRepairingTimer = DateTime.MinValue;

            ConditionPredictMin  = 0;
            ConditionPredictMax  = ConditionHealingSpan.TotalSeconds * 2;
            LastConditionUpdated = DateTime.Now;
            PreviousShips        = new IDDictionary <ShipData>();
            IsAnchorageRepaired  = new Dictionary <int, bool>();
        }
示例#4
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));
        }
 public override void Initialize()
 {
     ShipGroups = new IDDictionary <ShipGroupData>();
 }
 public FleetManager()
 {
     Fleets = new IDDictionary <FleetData>();
     AnchorageRepairingTimer = DateTime.MinValue;
 }
 public QuestManager()
 {
     Quests   = new IDDictionary <QuestData>();
     IsLoaded = false;
 }
 public BaseAirCorpsData()
 {
     Squadrons = new IDDictionary <BaseAirCorpsSquadron>();
 }
 public QuestManager()
 {
     Quests    = new IDDictionary <QuestData>();
     IsLoaded  = false;
     _prevTime = DateTime.Now;
 }
示例#10
0
 public FleetPresetManager()
 {
     Presets = new IDDictionary <FleetPresetData>();
 }