bool CheckBuilding(Building building, Building other, out float value) { value = 0; if (building == null || other == null) { return(false); } value = BuildingRelationships.GetScoreBetweenBuildings(building.Type, other.Type); return(true); }
bool CheckCell(Building building, BaseCell cell, out float value) { value = 0; if (building == null || cell == null) { return(false); } value = BuildingRelationships.GetScoreBetweenBuildingAndPlane(building.Type, cell.CellType); return(true); }