Beispiel #1
0
 private IntVec3 GetLinkTargetCell(IntVec3 cell, WaterRegionLink link)
 {
     return(RegionCostCalculatorShips.LinkClosestCell(cell, link));
 }
Beispiel #2
0
        private int MinimumRegionLinkDistance(IntVec3 cell, WaterRegionLink link)
        {
            IntVec3 intVec = cell - RegionCostCalculatorShips.LinkClosestCell(cell, link);

            return(this.OctileDistance(Math.Abs(intVec.x), Math.Abs(intVec.z)));
        }