public TimeSpan LoadSector(int sectorX, int sectorY) { // Utility.TimeStart(); SectorX = sectorX; SectorY = sectorY; var file = String.Format("gamedata/{0}-{1}", sectorX, sectorY); //_temperature = WorldData.MyWorldData.TempData[sectorX][sectorY]; stopwatch.Start(); if (File.Exists(file)) SectorData.Read(file); else { SectorData = StartProcess(PlayScreen.SpawnX == sectorX && PlayScreen.SpawnY == sectorY,sectorX, sectorY); } stopwatch.Start(); return stopwatch.Elapsed; }
public LoaderBase() { SectorData = new SectorData(); }