class
cCultureSetContains the IDs of all the creation types of a specific "culture" or civilization/empire.
This maps each member of the ModelTypes enum to a creation ID.
Constructors, destructors, conversion operators
Public functions
- auto SetCreation(ModelTypes creationType, const ResourceKey& modelKey) -> const ResourceKey&
- Assigns a creation to a certain type.
- auto GetCreation(ModelTypes creationType) -> const ResourceKey*
- auto PickCreation(ModelTypes creationType) -> const ResourceKey&
- Returns the creation assigned to the specific type, or picks one randomly if there is no creation assigned yet.
Public variables
-
eastl::map<uint32_
t, ResourceKey> mModelTypeToKeyMap
Function documentation
const ResourceKey& Simulator:: cCultureSet:: SetCreation(ModelTypes creationType,
const ResourceKey& modelKey)
Assigns a creation to a certain type.
Parameters | |
---|---|
creationType | |
modelKey |
The available types can be found in the ModelTypes enum, such as "BuildingCityHall". The ResourceKey points directly to the creation model (the .bld, .crt,... files)
const ResourceKey& Simulator:: cCultureSet:: PickCreation(ModelTypes creationType)
Returns the creation assigned to the specific type, or picks one randomly if there is no creation assigned yet.
Parameters | |
---|---|
creationType |