Example #1
0
        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;
        }
Example #2
0
 public LoaderBase()
 {
     SectorData = new SectorData();
 }