Skip to content

BattleStartedEvent

Battle began: the range-track machine takes over.

Full documentation: BattleStartedEvent. Wire type: battle_started.

Default visibility: player

Message codes: battle.started

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": "Battle began: the range-track machine takes over.",
  "properties": {
    "code": {
      "default": "battle.started",
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "player"
    },
    "event_type": {
      "const": "battle_started",
      "default": "battle_started",
      "title": "Event Type",
      "type": "string"
    }
  },
  "title": "BattleStartedEvent",
  "type": "object"
}