跳转至

Packet Header

文档版本:r/20_u8
协议版本:671

Packet Header类型。该类型用于protocol.type.packet_header.description

结构

digraph "Packet Header" {
rankdir = LR
0
0 -> 1
1 -> 2

0 [label="Packet Header",comment="name: \"Packet Header\", typeName: \"\", id: 0, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Packet ID",comment="name: \"Packet ID\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"The first 10 value bits are the packet id, the next 2 value bits are the Sender SubClientID, and the next 2 value bits are the Target SubClientID\""];
2 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2}

}

字段

Packet Header
[packet_id]
Packet ID:unsigned varint
基本类型。protocol.type.packet_header.packet_id.descriptionThe first 10 value bits are the packet 'id', the next 2 value bits are the Sender SubClientID, and the next 2 value bits are the Target SubClientID