sel.hncom.player

Packets related to a player. The first field of every packet is an hub id that uniquely identifies a player in the hub and never changes until it disconnects.

Members

Mixin templates

IO
mixintemplate IO(E...)
Undocumented in source.

Structs

Add
struct Add

Adds a player to the node.

GamePacket
struct GamePacket
Undocumented in source.
Kick
struct Kick

Kicks a player from the node and the whole server. When a player is disconnected from the node using this packet the hub will not send the Remove packet.

OrderedGamePacket
struct OrderedGamePacket
Undocumented in source.
Packets
struct Packets
Undocumented in source.
Remove
struct Remove

Removes a player from the node. If the player is removed using Kick or Transfer this packet is not sent.

SerializedGamePacket
struct SerializedGamePacket
Undocumented in source.
Transfer
struct Transfer

Transfers a player to another node. When a player is transferred from the node the hub will not send the Remove packet and there's no way, for the node, to know whether the player was disconnected or successfully transferred, if not using messages through a user-defined protocol.

UpdateDisplayName
struct UpdateDisplayName

Updates the player's display name when it is changed. When this packet is sent by the node a copy is always sent back by the hub.

UpdateLanguage
struct UpdateLanguage

Updates the player's language when the client changes it.

UpdateLatency
struct UpdateLatency

Updates the latency between the player and the hub.

UpdatePacketLoss
struct UpdatePacketLoss

Updates the packet loss between the player and the hub.

UpdatePermissionLevel
struct UpdatePermissionLevel

Update the player's permission level. When this packet is sent by the node a copy is always sent back by the hub.

UpdateViewDistance
struct UpdateViewDistance

Notifies the node that the player's view distance has been updated client-side. The node may decide to not accept the new view distance and not send the required chunks.

UpdateWorld
struct UpdateWorld

Updates the player's world. The player's dimension should be updated by the hub using worldId to identify the world added with AddWorld and removed with RemoveWorld.

Meta

Authors

Kripth