2024-05-27 19:53:29 +03:00
|
|
|
# List of available hooks:
|
|
|
|
|
2024-08-11 13:57:25 +03:00
|
|
|
- `ctx.hook.on_world_initialized()`
|
2024-05-27 19:53:29 +03:00
|
|
|
- `ctx.hook.on_world_update()`
|
|
|
|
- `ctx.hook.on_world_update_client()`
|
|
|
|
- `ctx.hook.on_world_update_host()`
|
2024-07-18 16:39:03 +03:00
|
|
|
- `ctx.hook.on_new_player_seen(new_playerdata, player_count)` - called the first time player with this peer_id has entered the world
|
2024-05-27 19:53:29 +03:00
|
|
|
- `ctx.hook.on_local_player_spawn(my_player)`
|
|
|
|
- `ctx.hook.on_client_spawned(peer_id, new_playerdata)`
|
|
|
|
- `ctx.hook.on_should_send_updates()` - called either when we connect, or somebody else connects (and sends "welcome" message)
|
2024-06-16 13:13:59 +03:00
|
|
|
|