Exemplo n.º 1
0
        internal MapMin ShallowCopy()
        {
            RegionMin[] regionsMin = new RegionMin[RegionsMin.Length];
            Array.Copy(RegionsMin, regionsMin, RegionsMin.Length);

            SuperRegionMin[] superRegionsMin = new SuperRegionMin[SuperRegionsMin.Length];
            Array.Copy(SuperRegionsMin, superRegionsMin, SuperRegionsMin.Length);

            return(new MapMin(regionsMin, superRegionsMin));
        }
Exemplo n.º 2
0
 public bool IsNeighbourOf(RegionMin region)
 {
     foreach (var neighbour in Neighbours)
     {
         if (neighbour.Static.Id == region.Static.Id)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 public bool IsNeighbourOf(RegionMin region)
 {
     return(Static.IsNeighbourOf(region));
 }