Skip to content

PacketProtocol.md

Shirasawa edited this page Jan 7, 2022 · 14 revisions

PacketProtocol

一个包有两部分组成:

  1. 包ID (int8)
  2. 包内容

Serverbound

0 - Reply

Field Name Field Type Notes
ID int32 用于记录本次事件
包体 ... 真正的封包内容

1 - Explorer Get - Reply

导航栏读取

Field Name Field Type Notes
类型 int8 类型如下表
路径 string 表示客户端当前要读取的路径

客户端收到回复:

Field Name Field Type Notes
目录数量 int32
n个目录... string[]
文件数量 int32
n个文件... string[]

导航栏类型:

  1. 收藏
  2. 插件

Clientbound

1 - Project Info

项目信息

Field Name Field Type Notes
端序 int16 直接为 1 (short int)

Clone this wiki locally