Get desktop application:
View/edit binary Protocol Buffers messages
Command data Operation frame data, used for client to send to the server, and the server broadcasts to all clients in the room 操作帧数据, 用于客户端发送给服务器,服务器广播给房间内所有客户端
Used in: ,
player uid
player uid
joystick x axis value
x position
joystick y axis value
y position
player action
action
custom data
custom data
Frame data
Used in:
frame index
operation data
MsgID
NoticeID
Notice client to sync frame data Room will send this notice every frame to all clients in the room 房间会每帧向房间内所有客户端发送此同步信息
frame data 帧数据
Notice client to exit room when client exit room, server will send this notice to all clients in the room 当客户端退出房间时,服务器会向房间内所有客户端发送此通知
need remove player uids 需要移除的玩家uid
Notice client to join room when client join room, server will send this notice to all clients in the room if client is already in the room, notice will not be sent 当客户端加入房间时,服务器会向房间内所有客户端发送此通知
need add player info 需要添加的玩家信息
Player info
Used in:
Client leave room
(message has no fields)
Client join room
room jwt token contains: uid,room_id 房间jwt token包含: uid,room_id
last frame index: default 0, if client has cache data and want to reconnect from a frame index, set this value to the corresponding frame index 最后一帧的索引: 默认为0, 如果客户端本地有缓存数据,想要从某个帧索引重新连接,设置这个值为对应的帧索引
Client sync frame data
Common response Common response message, all Response messages should be returned to the client as the message field of this message 通用响应消息,所有Response消息都应该作为此消息的message字段返回给客户端
Room error code
Used in:
Server response to client leave room
(message has no fields)
Server response to client join room
room random seed 房间随机种子
Server response to client sync frame data
(message has no fields)