sequence of building evolution stages including descriptions and the logic to determine the current stage
https://citybuilder.softleitner.com/manual/buildings
|
EvolutionStage[] | Stages |
|
string | EvolvedDescription |
|
string | EvolutionDescription |
|
string | Description |
|
string | DevolutionDescription |
|
◆ GetDescription()
string CityBuilderCore.EvolutionSequence.GetDescription |
( |
BuildingInfo | current, |
|
|
BuildingInfo | evolution, |
|
|
Vector2Int | position, |
|
|
IEnumerable< Service > | services, |
|
|
IEnumerable< Item > | items ) |
|
inline |
determines whet the building is missing before it can evolve to another stage
- Parameters
-
current | the buildings current info |
evolution | the evolution toi check against, probably the next higher one |
position | position used to determine layer values |
services | service currently available to the building |
items | items currently available to the building |
- Returns
- a string that expresses the missing requirements before the building can evolve to the desired stage
◆ GetDirection()
checks if the target evolution is above the current one
- Parameters
-
current | the current building |
evolution | the stage it should change to |
- Returns
- true when the building should evolve
◆ GetStage()
determines which stage the building should be at
- Parameters
-
position | position used to calculate layer values |
services | services the building currently has available |
items | items the building currently has access to |
- Returns
- the target stage