Example #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));
        }
Example #2
0
 public bool IsNeighbourOf(RegionMin region)
 {
     foreach (var neighbour in Neighbours)
     {
         if (neighbour.Static.Id == region.Static.Id)
         {
             return(true);
         }
     }
     return(false);
 }
Example #3
0
 public bool IsNeighbourOf(RegionMin region)
 {
     return(Static.IsNeighbourOf(region));
 }