sul.protocol.hncom2.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's disconnected.

Members

Aliases

Packets
alias Packets = TypeTuple!(Add, Remove, Kick, Transfer, UpdateDisplayName, UpdateWorld, UpdateViewDistance, UpdateLanguage, UpdateGamemode, UpdateInputMode, UpdateLatency, UpdatePacketLoss, GamePacket, OrderedGamePacket)
Undocumented in source.

Classes

Add
class Add

Adds a player to the node.

GamePacket
class GamePacket

Sends data to client or handles data received from the client.

Kick
class 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
class OrderedGamePacket

Sends data to the client but order it because it could be sent by the node unordered, due to compressed packet sent delayed.

Remove
class Remove

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

Transfer
class 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
class UpdateDisplayName

Updates the player's display name when it changes.

UpdateGamemode
class UpdateGamemode

The client (node) always send a confirmation to the hub when this packet is received.

UpdateInputMode
class UpdateInputMode

Update the player's current input mode.

UpdateLanguage
class UpdateLanguage

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

UpdateLatency
class UpdateLatency

Updates the latency between the player and the hub.

UpdatePacketLoss
class UpdatePacketLoss

Updates the player's packet loss if it uses a connectionless protocol like UDP.

UpdateViewDistance
class UpdateViewDistance

Update's the player's view distance (or chunk radius). This packet is sent when the client updates its view distance and the server accepts it.

UpdateWorld
class UpdateWorld

Updates player's world and dimension.

Meta