# Events

## Events

Register with `client.set_event_callback(name, fn)`.

#### match_start

No fields.

#### match_end

Key | Description
--- | -----------
**known** | Whether the outcome is known.
**won** | Whether you won.
**quit** | Whether the match was quit.
**player_score** | Your goals.
**opponent_score** | Their goals.

#### turn_start

Key | Description
--- | -----------
**ours** | Whether it is our turn.

#### shot_fired

Key | Description
--- | -----------
**ours** | Whether we took it.
**angle** | Aim angle.
**power** | Power.

#### goal_scored

Key | Description
--- | -----------
**ours** | Whether we scored.
**player_score** | Your goals.
**opponent_score** | Their goals.

#### queue_phase

Key | Description
--- | -----------
**phase** | The queue phase as an integer.