Example #1
0
 private bool TileIsValidForUs(Tile worldTile)                                                                               //Assumes occupied tile
 {
     return(TileProperties.AllowsProps(worldTile.Occupier.Type) &&                                                           //That tile must allow props
            (int)TileProperties.GetUseage(worldTile.Occupier.Type) == (int)PropProperties.GetPlacementLocation(objectType)); //And it must match our intended location
 }