The numeric property to clamp
The lower bound for what we want the property to be allowed to be.
The upper bound for what we want the property to be allowed to be.
Whether we ended up changing the property or not.
Creates a new PropertiesManager with identical stored values to this one.
A new PropertiesManager, with identical stored values to this one.
Determines whether this PropertiesManager has identical stored values to another.
The PropertiesManager to compare to this one.
Whether their StoredValues are identical.
Merges a PropertiesManager onto this one, letting the input win in the event that both PropertiesManagers have a value stored.
The PropertiesManager to be merged onto this one.
A new PropertiesManager with stored values from both its parents.
Resets the given properties to their original stored value. Does not delete entries from the manager.
Rest
...properties: KnownProperty[]Collection of properties to reset.
Decrease a numeric property to the given value if necessary.
The numeric property we want to potentially lower.
The maximum value we want that property to have.
Whether we needed to change the property.
Increases a numeric property to the given value if necessary.
The numeric property we want to potentially raise.
The minimum value we want that property to have.
Whether we needed to change the property.
Static
mergeMerges an arbitrary collection of PropertiesManagers, letting the rightmost PropertiesManager win in the event of verlap.
Rest
...mergees: PropertiesManager[]The PropertiesManagers to merge together.
A PropertiesManager that is just an amalgam of all the constituents.
Clamps a numeric property, modulating it up or down to fit within a specified range