Commit a8e6ba24 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/select_position' into 'main'

add select_position stoc and ctos

See merge request !19
parents d8991a3d 80fe0f83
Pipeline #19221 passed with stage
in 14 seconds
......@@ -5,6 +5,14 @@ option go_package = "DarkNeos/ygopropb";
// ----- Basic -----
// 猜拳类型
enum HandType {
UNKNOWN = 0;
SCISSORS = 1;
ROCK = 2;
PAPER = 3;
}
// 卡牌的区域类型
enum CardZone {
DECK = 0; // 卡组
......@@ -142,6 +150,7 @@ message CtosGameMsgResponse {
message SelectCardResponse { repeated int32 selected_ptrs = 1; }
message SelectChainResponse { int32 selected_ptr = 1; }
message SelectEffectYnResponse { bool selected = 1; }
message SelectPositionResponse { CardPosition position = 1; }
oneof gameMsgResponse {
SelectIdleCmdResponse select_idle_cmd = 1;
......@@ -149,6 +158,7 @@ message CtosGameMsgResponse {
SelectCardResponse select_card = 3;
SelectChainResponse select_chain = 4;
SelectEffectYnResponse select_effect_yn = 5;
SelectPositionResponse select_position = 6;
}
}
......@@ -428,6 +438,13 @@ message StocGameMessage {
int32 effect_description = 4; // 卡效果
}
// 表示形式选择
message MsgSelectPosition {
int32 player = 1; // 玩家编号
int32 code = 2; // 卡编号
repeated CardPosition positions = 3; // 可选表示形式
}
oneof gameMsg {
MsgStart start = 1;
MsgDraw draw = 2;
......@@ -440,15 +457,6 @@ message StocGameMessage {
MsgSelectCard select_card = 9;
MsgSelectChain select_chain = 10;
MsgSelectEffectYn select_effect_yn = 11;
MsgSelectPosition select_position = 12;
}
}
// ----- common structs ------
// 猜拳类型
enum HandType {
UNKNOWN = 0;
SCISSORS = 1;
ROCK = 2;
PAPER = 3;
}
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