Exemplo 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 );
            }
        }
Exemplo 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 );
			}

			_prevTime = DateTime.Now;
			Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
		}