Commit 6ecf0f70 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/StocGameMessage' into 'main'

add StocGameMessage

See merge request !2
parents e7cfaff5 df53ccba
Pipeline #17774 passed with stage
in 19 seconds
......@@ -3,8 +3,6 @@ package ygopro;
option go_package = "DarkNeos/ygopropb";
// todo: comment
// reference: https://github.com/mycard/srvpro/blob/master/data/structs.json
message YgoCtosMsg {
......@@ -173,6 +171,30 @@ message StocDeckCount {
// 决斗开始!
message StocDuelStart {}
// 决斗对局内协议
message StocGameMessage {
// 对局开始
message MsgStart {
enum PlayerType {
UNKNOWN = 0;
FirstStrike = 1; // 先攻
SecondStrike = 2; // 后攻
Observer = 3; // 观战者
}
PlayerType playerType = 1; // 当前玩家的类型
// TODO: 增加大师规则对应的字段
int32 life1 = 2; // 玩家一的初始生命值
int32 life2 = 3; // 玩家二的初始生命值
int32 deckSize1 = 4; // 玩家一的主卡组数量
int32 deckSize2 = 5; // 玩家二的主卡组数量
int32 extraSize1 = 6; // 玩家一的额外卡组数量
int32 extraSize2 = 7; // 玩家二的额外卡组数量
}
oneof gameMsg { MsgStart start = 1; }
}
// ----- common structs ------
// 猜拳类型
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment