Ejemplo n.º 1
0
        private RecordManager()
        {
            MasterPath = @"Record";
            EnemyFleet = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction = new ConstructionRecord();
            ShipDrop = new ShipDropRecord();
            Development = new DevelopmentRecord();
            Resource = new ResourceRecord();

            if ( !Directory.Exists( MasterPath ) ) {
                Directory.CreateDirectory( MasterPath );
            }
        }
Ejemplo n.º 2
0
        private RecordManager()
        {
            MasterPath    = @"Record";
            EnemyFleet    = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction  = new ConstructionRecord();
            ShipDrop      = new ShipDropRecord();
            Development   = new DevelopmentRecord();
            Resource      = new ResourceRecord();

            if (!Directory.Exists(MasterPath))
            {
                Directory.CreateDirectory(MasterPath);
            }
        }
Ejemplo n.º 3
0
		private RecordManager() {

			MasterPath = @"Record";
			EnemyFleet = new EnemyFleetRecord();
			ShipParameter = new ShipParameterRecord();
			Construction = new ConstructionRecord();
			ShipDrop = new ShipDropRecord();
			Development = new DevelopmentRecord();
			Resource = new ResourceRecord();

			if ( !Directory.Exists( MasterPath ) ) {
				Directory.CreateDirectory( MasterPath );
			}

			_prevTime = DateTime.Now;
			Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
		}
Ejemplo n.º 4
0
        private RecordManager()
        {
            MasterPath    = @"Record";
            EnemyFleet    = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction  = new ConstructionRecord();
            ShipDrop      = new ShipDropRecord();
            Development   = new DevelopmentRecord();
            Resource      = new ResourceRecord();

            if (!Directory.Exists(MasterPath))
            {
                Directory.CreateDirectory(MasterPath);
            }

            _prevTime = DateTime.Now;
            Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
        }
		public DialogConstructionRecordViewer() {
			InitializeComponent();

			_record = RecordManager.Instance.Construction;
		}
		private string GetRecipeStringForSorting( ConstructionRecord.ConstructionElement record, bool containsDevmat = false ) {
			if ( containsDevmat )
				return GetRecipeStringForSorting( new[] { record.Fuel, record.Ammo, record.Steel, record.Bauxite, record.DevelopmentMaterial } );
			else
				return GetRecipeStringForSorting( new[] { record.Fuel, record.Ammo, record.Steel, record.Bauxite } );
		}