EntityStatistic
Nested Class of SurvivEngine.Entities.Statistics.EntityStatisticManager
Nested Class of SurvivEngine.Entities.Statistics.EntityStatisticManager
Represents some quantifiable metric about an entity that can be changed.
Read-Only
Returns the database-selected statistic name.
Gets or sets the maximum value to clamp this statistic value to.
Setting will fire the statistic max changed event.
Gets or sets the current value of this statistic.
Will be clamped to the max value.
Setting will fire the statistic changed event.
Read-Only
Hashes the statistic name to produce an ID.
Called when the statistic's value is changed.
Arguments are the old and the new value respectively.
Called when the statistic's max value is changed.
Arguments are the old and the new value respectively.
Decreases the statistic's current value by the given amount.
amount The amount to decrease.
Increases the statistic's current value by the given amount.
Will be clamped to the max value.
amount The amount to increase.