Skip to content

5.2.0 Minor Release

Latest

Choose a tag to compare

@SoloByte SoloByte released this 17 Jun 15:44

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 / BuffValue model with:
    • StatId
    • Stat
    • StatModifier
    • StatModifierKind
    • IStatModifierSource
    • StatModifierSource
    • TimedStatModifierSource
    • StackableStatModifierSource
    • StatSet
  • 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 StatsExample scene to test out the new stat system.
  • Added a SimpleStat class 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