abstract struct Woozy::Packet
- Woozy::Packet
- Struct
- Value
- Object
Extended Modules
Direct Known Subclasses
- Woozy::ClientBroadcastMessagePacket
- Woozy::ClientChunkPacket
- Woozy::ClientDisconnectPacket
- Woozy::ClientHandshakePacket
- Woozy::ClientPrivateMessagePacket
- Woozy::ServerBroadcastMessagePacket
- Woozy::ServerChunkPacket
- Woozy::ServerDisconnectPacket
- Woozy::ServerHandshakePacket
- Woozy::ServerPrivateMessagePacket
- Woozy::ServerPrivateMessageSuccessPacket
Defined in:
packet.crConstant Summary
-
DefaultSize =
256
-
HeaderSize =
5
-
IdToType =
{Woozy::ClientHandshakePacket::Id => Woozy::ClientHandshakePacket, Woozy::ServerHandshakePacket::Id => Woozy::ServerHandshakePacket, Woozy::ClientDisconnectPacket::Id => Woozy::ClientDisconnectPacket, Woozy::ServerDisconnectPacket::Id => Woozy::ServerDisconnectPacket, Woozy::ClientBroadcastMessagePacket::Id => Woozy::ClientBroadcastMessagePacket, Woozy::ServerBroadcastMessagePacket::Id => Woozy::ServerBroadcastMessagePacket, Woozy::ClientPrivateMessagePacket::Id => Woozy::ClientPrivateMessagePacket, Woozy::ServerPrivateMessagePacket::Id => Woozy::ServerPrivateMessagePacket, Woozy::ServerPrivateMessageSuccessPacket::Id => Woozy::ServerPrivateMessageSuccessPacket, Woozy::ClientChunkPacket::Id => Woozy::ClientChunkPacket, Woozy::ServerChunkPacket::Id => Woozy::ServerChunkPacket} of UInt8 => Woozy::Packet.class
Constructors
Class Method Summary
- .from_id(id : UInt8, bytes : Bytes) : Packet | Nil
- .header_from_bytes(bytes : Bytes) : Tuple(UInt8, Int32)