Emit movement events from Manager when event sourcing is enabled #40

Open
opened 2026-03-14 23:54:57 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit Message: feat(event-sourcing): emit container change events on player movement
  • Branch: feature/m1-v12-movement-events

Background

Movement actions change a player's @container (the room they're in) but do not emit GameObjectContainerUpdated events through the event sourcing system.

Expected Behavior

When event_sourcing_enabled is true, the Manager's container-change path emits UpdateGameObjectContainer commands for player movement.

Acceptance Criteria

  • Manager or GameObject#container= emits UpdateGameObjectContainer on container change
  • Events are only emitted when ServerConfig[:event_sourcing_enabled] is true
  • Errors are caught and logged without crashing the game

Subtasks

  • Verify GameObject#container= already emits (check existing hook)
  • If not, add command emission in the setter
  • Tests: Unit test verifying event emission on movement
  • Run bundle exec rake unit, fix any errors

Definition of Done

This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.

## Metadata - **Commit Message**: `feat(event-sourcing): emit container change events on player movement` - **Branch**: `feature/m1-v12-movement-events` ## Background Movement actions change a player's `@container` (the room they're in) but do not emit `GameObjectContainerUpdated` events through the event sourcing system. ## Expected Behavior When `event_sourcing_enabled` is true, the Manager's container-change path emits `UpdateGameObjectContainer` commands for player movement. ## Acceptance Criteria - [ ] `Manager` or `GameObject#container=` emits `UpdateGameObjectContainer` on container change - [ ] Events are only emitted when `ServerConfig[:event_sourcing_enabled]` is true - [ ] Errors are caught and logged without crashing the game ## Subtasks - [ ] Verify `GameObject#container=` already emits (check existing hook) - [ ] If not, add command emission in the setter - [ ] Tests: Unit test verifying event emission on movement - [ ] Run `bundle exec rake unit`, fix any errors ## Definition of Done This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.
freemo added this to the v1.2.0 milestone 2026-03-14 23:54:57 +00:00
freemo self-assigned this 2026-03-15 04:25:22 +00:00
freemo modified the milestone from v1.2.0 to v1.0.0 2026-03-15 23:19:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: aethyr/Aethyr#40
No description provided.