Ejemplo n.º 1
0
        public static GameZona GetGameZona(int x, int y)
        {
            GameZona result = null;

            if (ListGameZones.TryGetValue(x, out _))
            {
                ListGameZones[x].TryGetValue(y, out result);
            }
            return(result);
        }
Ejemplo n.º 2
0
 public static void Initialization()
 {
     for (int x = MapXMin; x <= MapXMax; ++x)
     {
         ListGameZones[x] = new Dictionary <int, GameZona>();
         for (int y = MapYMin; y <= MapYMax; ++y)
         {
             ListGameZones[x][y] = new GameZona(x, y);
         }
     }
     ConsoleSystem.Log("[ZonaManager]: Initialized zones " + Settings.MapZonaCount * Settings.MapZonaCount + " count from " + Settings.MapZonaSize * Settings.MapZonaCount + " size.");
 }