Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }