Skip to content

3 new classes: CacheableBehaviour, KeyHelper, Number

Compare
Choose a tag to compare
@Emik03 Emik03 released this 10 Jul 19:51
· 549 commits to main since this release
  • Added CacheableBehaviour, a MonoBehaviour with Cache<T> methods from ModuleScript. Every other MonoBehaviour script in this library inherits from this script for maximum flexibility.
  • Added constructor parameter to specify compliancy with the Logfile Analyzer in Logger.
  • Added GetChild<T>(), GetChildren<T>(), GetParent<T>(), and GetParents<T>() in CacheableBehaviour.
  • Added KeyHelper, which allows inline methods for keyword-functionality, including accessing keywords not normally present in C# 4.
  • Added Number class, allowing for abstraction of primitive numeric values.
  • Added Reverse() string overload in Helper.
  • Added SplitEvery<T>() method in Helper.
  • Added static getters for in-game sound effects in Sound.
  • Changed primitive numeric casting to Number in BigInteger.
  • Renamed GetAll<T>() to Gets<T>() to be consistent with other methods in CacheableBehaviour.
  • Fixed a crash when doing PlaySound() with more than 2 KMAudio components. An exception is raised instead.