Replaced prologue implementation with mummy for listener management, since it seems more suitable for future use (websockets, etc.).

This commit is contained in:
Jakob Friedl
2025-09-19 18:31:45 +02:00
parent 6b41efe1ed
commit 42cc58b30b
8 changed files with 122 additions and 96 deletions

View File

@@ -129,7 +129,7 @@ proc header() =
proc init*(T: type Conquest, profile: Profile): Conquest =
var cq = new Conquest
cq.prompt = Prompt.init()
cq.listeners = initTable[string, Listener]()
cq.listeners = initTable[string, tuple[listener: Listener, thread: Thread[Listener]]]()
cq.agents = initTable[string, Agent]()
cq.interactAgent = nil
cq.profile = profile