Register with client.set_event_callback(name, fn). The callback gets one table with the listed fields.
| Key |
Description |
| mode |
The match mode. |
| Key |
Description |
| mode |
The match mode. |
| won |
Whether you won. |
| quit |
Whether the match was quit. |
| coins |
Coin delta. |
| Key |
Description |
| ours |
Whether it is our turn. |
| Key |
Description |
| angle |
Aim angle, radians. |
| power |
Power, 0..1. |
| english |
Side and top spin, { x, y } each -1..1. |
| autoplay |
Whether the autoplayer took it. |
| Key |
Description |
| number |
Ball number. |
| pocket |
Pocket index. |
| Key |
Description |
| state |
The game state as an integer. |
| Key |
Description |
| phase |
The queue phase as an integer. |