MonstersSpawnedEvent
Monsters spawned into the session registry (referee bookkeeping).
Full documentation: MonstersSpawnedEvent. Wire type: monsters_spawned.
Default visibility: referee
Message codes: session.monsters.spawned
JSON Schema
{
"$defs": {
"Visibility": {
"description": "Who may see an event.\n\nThe wire values are `\"player\"` and `\"referee\"` \u2014 lowercase, serialized into every\nevent; changing them is a `schema_version` bump.",
"enum": [
"player",
"referee"
],
"title": "Visibility",
"type": "string"
}
},
"description": "Monsters spawned into the session registry (referee bookkeeping).",
"properties": {
"code": {
"default": "session.monsters.spawned",
"title": "Code",
"type": "string"
},
"visibility": {
"$ref": "#/$defs/Visibility",
"default": "referee"
},
"event_type": {
"const": "monsters_spawned",
"default": "monsters_spawned",
"title": "Event Type",
"type": "string"
},
"template_id": {
"title": "Template Id",
"type": "string"
},
"monster_ids": {
"items": {
"type": "string"
},
"title": "Monster Ids",
"type": "array"
}
},
"required": [
"template_id",
"monster_ids"
],
"title": "MonstersSpawnedEvent",
"type": "object"
}