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