Skip to content

Commit

Permalink
Update CHANGELOG, add doc-strings to new private methods (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 authored Sep 4, 2024
1 parent e3b0bd4 commit ae21e73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [[v0.13.2]](https://github.com/mlange-42/arche/compare/v0.13.1...v0.13.2)

### Bugfixes

* Ensure Assign() copies components before notifying listeners (#426, [g-getsov](https://github.com/g-getsov))

## [[v0.13.1]](https://github.com/mlange-42/arche/compare/v0.13.0...v0.13.1)

### Bugfixes
Expand Down
2 changes: 2 additions & 0 deletions ecs/world_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ func (w *World) exchange(entity Entity, add []ID, rem []ID, relation ID, hasRela
w.exchangeNoNotify(entity, add, rem, relation, hasRelation, target)
}

// perform exchange operation without notifying listeners.
func (w *World) exchangeNoNotify(entity Entity, add []ID, rem []ID, relation ID, hasRelation bool, target Entity) (*archetype, *Mask, Entity, *ID) {
w.checkLocked()

Expand Down Expand Up @@ -490,6 +491,7 @@ func (w *World) exchangeNoNotify(entity Entity, add []ID, rem []ID, relation ID,
return arch, &oldMask, oldTarget, oldRel
}

// notify listeners for an exchange.
func (w *World) notifyExchange(arch *archetype, oldMask *Mask, entity Entity, add []ID, rem []ID, oldTarget Entity, oldRel *ID) {
var newRel *ID
if arch.HasRelationComponent {
Expand Down

0 comments on commit ae21e73

Please sign in to comment.