public Color GetSpriteBackColor() { Color c = null; int currentPriority = int.MaxValue; for (int i = 0; i < (int)TileLayer.NUM_OF_LAYERS; i++) { Tile_SimpleFeature feature = GetFeature(GetLayer((TileLayer)i)); if (feature.priority < currentPriority && RandomizedColors[i, 1] != null) { c = RandomizedColors[i, 1]; currentPriority = feature.priority; } } return(c); }
public char GetSprite() { char sprite = ' '; int currentPriority = int.MaxValue; for (int i = 0; i < (int)TileLayer.NUM_OF_LAYERS; i++) { Tile_SimpleFeature feature = GetFeature(GetLayer((TileLayer)i)); if (feature.priority < currentPriority && feature.displayChar != null) { sprite = feature.displayChar; currentPriority = feature.priority; } } return(sprite); }