1.8 KiB
1.8 KiB
TaleWeave AI Events
Contents
Event Types
- Player events
- Joining
- Leaving
- System events
- Generating the world?
- World events
- Things happening in the world
Player Events
Player events use the following schema:
event: "player"
status: string
character: string
client: string
Player Join Events
Player join events have a status
of join
:
event: "player"
status: "join"
character: string
client: string
Player Leave Events
Player leave events have a status
of leave
:
event: "player"
status: "leave"
character: string
client: string
System Events
Generate Events
Generate events are sent every time an entity's name is generated and again when it has been completely generated and added to the world.
event: "generate"
name: str
entity: Room | Actor | Item | None
Two generate
events will be fired for each entity. The first event will not have an entity
set, only the name
.
The second event after generation is complete will have the same name
and the full entity
. This helps provide
more frequent progress updates when generating with slow models.