ClassicCityBuilderKit 1.8.8
|
central repository that calculates and buffers score values
this is expecially important for performance heavy scores that should not be calculated multiple times every frame
Public Member Functions | |
int | GetValue (Score score) |
gets the last calculated value for the score | |
void | Register (IScoreModifier modifier) |
adds a modifier that will be applied to score values after calculating them | |
void | Deregister (IScoreModifier modifier) |
removes a modifier that has previously been registered | |
Events | |
Action | Calculated |
fires after every round of score calculations can be used to refresh score visualizations | |
void CityBuilderCore.IScoresCalculator.Deregister | ( | IScoreModifier | modifier | ) |
removes a modifier that has previously been registered
modifier | the modifier that will no longer be applied, the change will not happen until the next round of calculations |
Implemented in CityBuilderCore.DefaultScoresCalculator.
int CityBuilderCore.IScoresCalculator.GetValue | ( | Score | score | ) |
gets the last calculated value for the score
score | the score for which to retrieve tha value |
Implemented in CityBuilderCore.DefaultScoresCalculator.
void CityBuilderCore.IScoresCalculator.Register | ( | IScoreModifier | modifier | ) |
adds a modifier that will be applied to score values after calculating them
modifier | the modifier that will be applied next time score calculation happens |
Implemented in CityBuilderCore.DefaultScoresCalculator.