internal void CheckRule(Tile tile, Biome biome) { bool checkTag = CheckTag(tile); if (!checkTag) { return; } bool checkBelow = checkTagBelow(tile); if (!checkBelow) { return; } bool checkSide = CheckSides(tile); if (!checkSide) { return; } if (ChangeTo != null || ChangeTo != "") { TileType tt = biome.GetTileWithTag(ChangeTo); if (tt == null) { Utils.LogError("No Tile with tag " + ChangeTo + " found."); } tile.SetTileType(tt, false); } tile.height = ChangeHeight; }