Azmyth.Assets.TerrainTile.UpdateVonNeumanNeighbors C# (CSharp) Method

UpdateVonNeumanNeighbors() public method

public UpdateVonNeumanNeighbors ( ) : void
return void
        public void UpdateVonNeumanNeighbors()
        {
            for (Directions direction = Directions.North; direction < Directions.MaxCardinal; direction += 2)
            {
                TerrainTile neighbor = LoadNeighbor(direction);

                if (m_neighbors.ContainsKey(direction))
                {
                    m_neighbors[direction] = neighbor;
                }
                else
                {
                    m_neighbors.Add(direction, neighbor);
                }
            }
        }