Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos Protobuf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos Protobuf
Commits
2d0e540e
Commit
2d0e540e
authored
Jan 18, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add MsgSelectUnselectCard
parent
9df2b696
Pipeline
#19665
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
idl/ocgcore.proto
idl/ocgcore.proto
+22
-0
No files found.
idl/ocgcore.proto
View file @
2d0e540e
...
...
@@ -153,6 +153,10 @@ message CtosGameMsgResponse {
message
SelectPositionResponse
{
CardPosition
position
=
1
;
}
message
SelectOptionResponse
{
int32
code
=
1
;
}
message
SelectBattleCmdResponse
{
int32
selected_cmd
=
1
;
}
message
SelectUnselectCardResponse
{
bool
cancel_or_finish
=
1
;
// 如果玩家取消了选择或者完成了选择,传-1给后端
int32
selected_ptr
=
2
;
// 玩家本轮的选择
}
oneof
gameMsgResponse
{
SelectIdleCmdResponse
select_idle_cmd
=
1
;
...
...
@@ -163,6 +167,7 @@ message CtosGameMsgResponse {
SelectPositionResponse
select_position
=
6
;
SelectOptionResponse
select_option
=
7
;
SelectBattleCmdResponse
select_battle_cmd
=
8
;
SelectUnselectCardResponse
select_unselect_card
=
9
;
}
}
...
...
@@ -502,6 +507,22 @@ message StocGameMessage {
CardPosition
cur_position
=
3
;
// 当前的表示形式
}
message
MsgSelectUnselectCard
{
message
Info
{
int32
code
=
1
;
CardLocation
location
=
2
;
int32
response
=
3
;
}
int32
player
=
1
;
bool
finishable
=
2
;
// 是否可以完成选择
bool
cancelable
=
3
;
// 是否可以取消
int32
min
=
4
;
// 最小选择数量
int32
max
=
5
;
// 最大选择数量
repeated
Info
selectable_cards
=
6
;
// 可以选择的选项
repeated
Info
selected_cards
=
7
;
// 已经选择的选项
}
oneof
gameMsg
{
MsgStart
start
=
1
;
MsgDraw
draw
=
2
;
...
...
@@ -519,5 +540,6 @@ message StocGameMessage {
MsgShuffleHand
shuffle_hand
=
14
;
MsgSelectBattleCmd
select_battle_cmd
=
15
;
MsgPosChange
pos_change
=
16
;
MsgSelectUnselectCard
select_unselect_card
=
17
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment