private static Color GetRoadColor(TerrainUnitModel mdl) { if (mdl.IsRoadBrick()) { return(Color.FireBrick); } if (mdl.IsRoadDarkSoil()) { return(Color.SaddleBrown); } if (mdl.IsRoadSoil()) { return(Color.Peru); } if (mdl.IsRoadStone()) { return(Color.DarkGrey); } if (mdl.IsRoadPattern()) { return(Color.Ivory); } if (mdl.IsRoadTile()) { return(Color.SteelBlue); } if (mdl.IsRoadSand()) { return(Color.SandyBrown); } return(Color.BurlyWood); }
private static Color GetTileDefaultColor(TerrainUnitModel mdl) { if (mdl.IsRiver()) { return(River); } if (mdl.IsFall()) { return(Color.DeepSkyBlue); } if (mdl.IsCliff()) { return(CliffBase); } return(Color.ForestGreen); }
public static bool IsRiver(this TerrainUnitModel t) => River0A <= t && t <= River8A;
public static bool IsFall(this TerrainUnitModel t) => (Fall101 <= t && t <= Fall404) || (Fall103 <= t && t <= Fall424);
public static bool IsCliff(this TerrainUnitModel t) => (Cliff0A <= t && t <= Cliff8) || (t == Cliff2B);
public static bool IsRoadSoil(this TerrainUnitModel t) => RoadSoil0A <= t && t <= RoadSoil8A;
public static bool IsRoad(this TerrainUnitModel t) => t >= RoadBrick0A || (RoadSoil0A <= t && t <= RoadStone8A);
public static bool IsRoadStone(this TerrainUnitModel t) => RoadStone0A <= t && t <= RoadStone8A;
public static bool IsRoadBrick(this TerrainUnitModel t) => RoadBrick0A <= t && t <= RoadBrick8A;
public static bool IsRoadPattern(this TerrainUnitModel t) => RoadFanPattern0A <= t && t <= RoadFanPattern8A;
public static bool IsRoadSand(this TerrainUnitModel t) => RoadSand0A <= t && t <= RoadSand8A;
public static bool IsRoadTile(this TerrainUnitModel t) => RoadTile0A <= t && t <= RoadTile8A;