Creates a new instance of the attribute class.
The parameters for the attribute static class.
OptionalgamePointer: GameA pointer to the game instance.
ReadonlyboostThe boost of the attribute. NOTE: This will not be used if the boost is disabled.
OptionalgameThe game pointer/reference
ReadonlyinitialThe initial value of the attribute.
Protected ReadonlypointerThe data for the attribute.
The static data for the attribute.
Gets the value of the attribute, and also updates the value stored. NOTE: This getter must be called every time the boost is updated, else the value stored will not be updated.
The calculated value of the attribute.
Sets the value of the attribute. NOTE: This setter should not be used when boost is enabled.
The value to set the attribute to.
Represents a game attribute. Attribute is the data class and AttributeStatic is the static class where all the useful functions are. To use, destruct the
dataandstaticproperties from the class.