Exemplo n.º 1
0
 private static bool IsSafeMiningLocation(Map map, Vector3 position, Character character = null)
 {
     return GetSurroundingPositions(map, position)
         .All(surroundingPosition =>
             map.GetCell(surroundingPosition).HasNaturalWall()
             || (character != null && character.CanReach(surroundingPosition, false)));
 }