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 (
"fmt"
@@ -46,3 +46,12 @@ func (s *doHousework) Execute(e *Elsa) {
// Exit does nothing, for the same reason as Enter.
func (s *doHousework) Exit(e *Elsa) {}
// OnMessage is required now that State[T] includes it, so that every
// state satisfies the interface. This state doesn't do anything
// special with messages yet - false means "I didn't handle it,"
// which lets StateMachine.HandleMessage fall through and try the
// global state instead.
func (s *doHousework) OnMessage(e *Elsa, msg Telegram) bool {
return false
}