internal static bool IsMatch(this TerrainTile tile, TerrainMatchType match) { switch (match) { case TerrainMatchType.Land: if (tile.IsLandTile()) { return(true); } break; case TerrainMatchType.Sea: if (tile.IsSeaTile()) { return(true); } break; } return(false); }