Skip to main content

Module net

Module net 

Source
Expand description

The bus’s domains: each one’s actions as functions (world::get_block(dim, pos), entity::position(uuid), player::give_item(name, item, count)) beside its events. Sending over the network: the host’s actions.

Structs§

SendToPlayer
Sends payload on channel to player (server side).
SendToServer
Sends payload on channel to the server (client side).

Functions§

send_to_player
Sends payload on channel to player (server side).
send_to_server
Sends payload on channel to the server (client side).