Releases: hardlyardi/b226
Releases · hardlyardi/b226
0.2.3
Release v0.2.2
Version 0.2.2
Warning
This release is running non-native & optimize 0 because I forgot to change it, consider using a patch at or above 0.2.3
## 0.2.2 Changes
/ CleanupOn* changed:
/ CleanupOnClear -> OnClear
/ CleanupOnClearTarget -> OnClearTarget
# Cleanup actions have retained their naming. E.g., CleanupDelete: pair(OnClearTarget, CleanupDelete)
/ Deleting an entity now clears its components after clearing references
+ You can now modify entities from inside hooks
+ ecs.in_use(entity) to check if it is safe to change the hooks on an entity
+ New Cleanup Conditions:
+ OnClearAsRelation (cleans when this ID is used as the first item of a relationship, OnClear/OnDelete does not have this behavior)
+ OnDelete, OnDeleteTarget, OnDeleteAsRelation
+ Prebuilt Cleanup Trait Pairs:
+ DeleteOnClear + DeleteOnDelete
+ DeleteOnClearTarget + DeleteOnDeleteTarget
+ DeleteOnClearAsRelation + DeleteOnDeleteAsRelation
+ Query Monitors:
+ query:monitor_added(callback)
+ query:monitor_removed(callback)
+ query:monitor_added_row(callback)
+ query:monitor_removed_row(callback)
# As of right now, monitors do not support wildcard queries.
## 0.2.2 Improvements
+ Proper README documentation
+ Improved Unit Testing for Queries, Bulk API, Observers, Monitors, Graph Traversal, and more.
+ Optimized memory efficiency for hooks on relations
+ Optimized query matcher caching to inline the first fastpath
+ Query match page tests are now stored in a sorted array (based on page ptr) for more predictable access patterns
## 0.2.2 Fixes
+ Fixed multiple bugs with pairs
+ Fixed a bug with ecs.bulk_set not changing values
+ Fixed a bug with arch_ensure_dense / queries that could lead to UB
+ Fixed a bug with removed observers that could lead to UB
+ Fixed multiple bugs with ecs.clear
Full Changelog: 0.1.0...0.2.2
0.1.0
0.1.0 Highlights
+ Bulk API
+ Cached Queries
- query:entities_cached() [call multiple times]
- query:archetypes_cached() [readonly]
- query:observe_added(callback)
- query:observe_removed(callback)
+ Exclusive Relationships
+ Cleanup Traits
+ Old & New Solver support:
- b2.ecs(new_solver)