feat: westworldwithmessaging. add entitymanager, telegram, messagehandlers, delayedmessages, expand baseentity

This commit is contained in:
jonas committed 2026-09-03 21:57:52 +02:00
1 parent 0e7482e04c
commit 129dd5d8b8
18 files changed
+505 -19

No files matched your search

@@ -1,4 +1,4 @@
package westworldwithwoman
package westworldwithmessaging
import (
"math/rand"
@@ -48,3 +48,14 @@ func (s *wifesGlobalState) Execute(e *Elsa) {
e.ChangeState(VisitBathroom())
}
}
// OnMessage is required now that State[T] includes it. This state
// doesn't handle any messages yet - false ("not handled") is the
// correct default until the book shows otherwise. (Note: our Elsa
// only has DoHousework and VisitBathroom, not a cooking state, so
// the book's stew-related messages between Miner and Elsa may not
// map cleanly onto this simplified version - worth revisiting if
// that comes up.)
func (s *wifesGlobalState) OnMessage(e *Elsa, msg Telegram) bool {
return false
}