update:修复大乱斗
This commit is contained in:
@@ -148,7 +148,7 @@ const SCHEMAS = {
|
||||
11: { name: "details", kind: "message", type: "MatchShoot", repeated: true },
|
||||
},
|
||||
MatchInfo: {
|
||||
1: { name: "match_id", kind: "int64" },
|
||||
1: { name: "match_id", kind: "string" },
|
||||
2: { name: "create_time", kind: "int64" },
|
||||
3: { name: "start_time", kind: "int64" },
|
||||
4: { name: "server_time", kind: "int64" },
|
||||
@@ -188,7 +188,7 @@ const SCHEMAS = {
|
||||
},
|
||||
ServerMessage: {
|
||||
1: { name: "type", kind: "int32" },
|
||||
2: { name: "match_id", kind: "int64" },
|
||||
2: { name: "match_id", kind: "string" },
|
||||
3: { name: "timestamp", kind: "int64" },
|
||||
4: { name: "match_info", kind: "message", type: "MatchInfo", oneof: "payload" },
|
||||
5: { name: "shoot_data", kind: "message", type: "ShootData", oneof: "payload" },
|
||||
@@ -327,7 +327,9 @@ export function encodeClientMessage(payload) {
|
||||
const userId = payload.user_id ?? payload.userId;
|
||||
|
||||
if (payload.type !== undefined) writer.uint32(8).int32(payload.type);
|
||||
if (matchId !== undefined && matchId !== null) writer.uint32(16).int64(matchId);
|
||||
if (matchId !== undefined && matchId !== null) {
|
||||
writer.uint32(18).string(String(matchId));
|
||||
}
|
||||
if (userId !== undefined && userId !== null) writer.uint32(24).int64(userId);
|
||||
if (payload.sequence !== undefined && payload.sequence !== null) {
|
||||
writer.uint32(32).int64(payload.sequence);
|
||||
|
||||
Reference in New Issue
Block a user