Actor messaging: mailboxes and events #50

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:03 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

Behaviors on different actors need to talk without holding references to each other's internals.

Decided

  • Worth doing when two game prototypes need it; designed then. Candidates: per-actor mailboxes drained at the sync point, typed events.

Read first

  • UnflavoredMeson/Primal#65.

Steps

  • 1. Collect two real cases from game code.
  • 2. Design and decide.
  • 3. Implement with tests.

Done when

  • Both cases work with the new API; tests pass.

Claude can help with

  • Comparing the options against your cases.

Learn

  • Why message timing (now or at the sync point) matters more than the message type.
## Why Behaviors on different actors need to talk without holding references to each other's internals. ## Decided - Worth doing when two game prototypes need it; designed then. Candidates: per-actor mailboxes drained at the sync point, typed events. ## Read first - `UnflavoredMeson/Primal#65`. ## Steps - [ ] 1. Collect two real cases from game code. - [ ] 2. Design and decide. - [ ] 3. Implement with tests. ## Done when - [ ] Both cases work with the new API; tests pass. ## Claude can help with - Comparing the options against your cases. ## Learn - Why message timing (now or at the sync point) matters more than the message type.
Sign in to join this conversation.
No assignees
No project
Depends on
#43 Actor runtime: actors, parts, behaviors
UnflavoredMeson/Primal_Plus_Plus
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#50
No description provided.