Skip to content

ZoneService v0.5.0-beta

Latest

Choose a tag to compare

@breadboardengineer1234 breadboardengineer1234 released this 06 Oct 00:03
· 3 commits to main since this release

Bug fixes

  • Fixed onZoneChange firing nil on zone transitions
  • Fixed onEnter and onExit signals not providing a way to identify the group associated with the fire
  • Fixed zone:update not storing the new size

Features

  • Removed groups entirely, including internal default group special case
  • Added observers as a replacement for groups: onEnter, onExit, and onZoneChange signals have been moved onto observers. Logically, observers work pretty much the same way as groups
  • Removed .ballSize and .cylinderSize helpers
  • Zone objects now expose isDynamic, priority, and observers as read-only fields
  • Added Zone collections and associated Zones type
  • Zone collection objects have add, remove, and destroy methods
  • Added .fromZones method for constructing a zone collection (in other words, a union of zones)
  • onEnter and onExit can now observe a collection of zones in addition to a single zone
  • Added Performance Mode: when ZoneService is causing heavy load, automatically reduces the polling rate to increase FPS. Performance Mode is often very worth it as a small reduction in polling rate can lead to a significant increase in FPS
  • Added error message to onZoneChange and getZones when the entity is no longer tracked