Stats system redesign
This is a breaking change! The Stats namespace is completely independent from the rest of Shape Engine; therefore, these breaking changes only affect the Stats namespace directly. I did not want to make a major release just for this, so in this case, there are breaking changes in a minor release.
Sorry for the inconvenience!
- Replaced old
Buff/BuffTimed/BuffStacked/BuffValuemodel with:StatIdStatStatModifierStatModifierKindIStatModifierSourceStatModifierSourceTimedStatModifierSourceStackableStatModifierSourceStatSet
- Added layered calculation order: flat, additive percent, multiplicative percent, override, min/max clamp.
- Added source categories for buff, debuff, equipment, passive, upgrade, custom.
- Added stackable timed sources with max stacks and duration refresh on reapply.
- Removed drawing concerns from the core stats classes.
- Added simple
StatsExamplescene to test out the new stat system. - Added a
SimpleStatclass for prototyping or when performance, memory or complexity is a major concern.
Content Manager TryLoad
RelativePath calculation was improved when RootDirectory of the ContentManager is set and filePath for loading a resource is already a relative path.
Full Changelog: v5.1.0...v5.2.0