[x] wiki documentation for new IteratingSystem family hook (+ reversed order for calls)
[x] verify version in test games
Changelog:
NEW (BREAKING CHANGE): new onInit function of a system which gets called after the world is configured
the creation of entities in a system's constructor now throws an exception. Such logic must be moved to the onInit function. This is a necessary change to keep consistency of hooks and families in that specific scenario. [#128]
NEW: new onEnable / onDisable functions for systems to react on enabled changes. [#127]
NEW: new FamilyOnAdd / FamilyOnRemove interfaces that can be used on IteratingSystem to add family hooks for the system's family in an easier way. Refer to the wiki for more details. [#128]
UPDATE: Update versions:
Kotlin 1.9.21
kotlinx.serialization 1.6.2
Gradle 8.5
UPDATE: onEntityRemoved of a family is now called BEFORE the entitiy's components are removed. [#120]
UPDATE: Fixed an issue that you can write it += Component which broke Fleks internally. This was introduced with the Tags feature and will now show you a compile error again. [#125]
UPDATE: Systems onDispose and systems' onRemoveEntity functions are called in reverse order. Before, the order was the order of systems of the world. [#130]
UPDATE: extracted the sorting logic of a system to a separate onSort function and made the sorting attributes protected instead of private. This allows a better support for overriding the onTick function, if needed. [#133]
Shoutout to @metaphore for the different suggestions and contributions!
Changelog:
onInit
function of a system which gets called after the world is configuredonInit
function. This is a necessary change to keep consistency of hooks and families in that specific scenario. [#128]onEnable
/onDisable
functions for systems to react onenabled
changes. [#127]FamilyOnAdd
/FamilyOnRemove
interfaces that can be used onIteratingSystem
to add family hooks for the system's family in an easier way. Refer to the wiki for more details. [#128]onEntityRemoved
of a family is now called BEFORE the entitiy's components are removed. [#120]it += Component
which broke Fleks internally. This was introduced with the Tags feature and will now show you a compile error again. [#125]onDispose
and systems'onRemoveEntity
functions are called in reverse order. Before, the order was the order of systems of the world. [#130]onSort
function and made the sorting attributes protected instead of private. This allows a better support for overriding theonTick
function, if needed. [#133]Shoutout to @metaphore for the different suggestions and contributions!