Commit 3090fbcb authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/select_sum' into 'main'

Feat/select sum

See merge request !36
parents 4f6cdd7c 3446033b
Pipeline #20885 passed with stage
in 37 seconds
......@@ -4,7 +4,7 @@ stages:
before_script:
- wget https://github.com/protocolbuffers/protobuf/releases/download/v21.9/protoc-21.9-linux-x86_64.zip
- unzip -o -d ./protobuf protoc-21.9-linux-x86_64.zip
- npm install -g protoc-gen-ts
- npm install -g protoc-gen-ts typescript@4.9.5
protoc:
stage: check
......
......@@ -532,6 +532,24 @@ message StocGameMessage {
repeated Info selected_cards = 7; // 已经选择的选项
}
message MsgSelectSum {
message Info {
int32 code = 1;
CardLocation location = 2;
int32 level1 = 3;
int32 level2 = 4;
int32 response = 5;
}
int32 overflow = 1; // 是否允许溢出
int32 player = 2; // 玩家编号
int32 level_sum = 3; // 总level
int32 min = 4;
int32 max = 5;
repeated Info must_select_cards = 6; // 必须选择的卡
repeated Info selectable_cards = 7; // 可以选择的卡
}
message MsgSelectYesNo {
int32 player = 1;
int32 effect_description = 2;
......@@ -654,5 +672,6 @@ message StocGameMessage {
MsgUnimplemented unimplemented = 22;
MsgUpdateData update_data = 23;
MsgReloadField reload_field = 24;
MsgSelectSum select_sum = 25;
}
}
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