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
954990bf
Commit
954990bf
authored
Jan 16, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add MsgSelectBattleCmd
parent
a5908aff
Pipeline
#19603
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
idl/ocgcore.proto
idl/ocgcore.proto
+33
-5
No files found.
idl/ocgcore.proto
View file @
954990bf
...
@@ -365,11 +365,11 @@ message StocGameMessage {
...
@@ -365,11 +365,11 @@ message StocGameMessage {
repeated
IdleData
idle_datas
=
2
;
repeated
IdleData
idle_datas
=
2
;
}
}
int32
player
=
1
;
int32
player
=
1
;
// 玩家编号
repeated
IdleCmd
idle_cmds
=
2
;
repeated
IdleCmd
idle_cmds
=
2
;
// 可操作的命令
bool
enable_bp
=
3
;
bool
enable_bp
=
3
;
// 是否可以进入BP阶段
bool
enable_ep
=
4
;
bool
enable_ep
=
4
;
// 是否可以结束回合
bool
enable_shuffle
=
5
;
bool
enable_shuffle
=
5
;
// 是否可以洗切手牌
}
}
// 位置选择操作提示
// 位置选择操作提示
...
@@ -466,6 +466,33 @@ message StocGameMessage {
...
@@ -466,6 +466,33 @@ message StocGameMessage {
repeated
int32
hands
=
2
;
// 切洗之后的手牌编号
repeated
int32
hands
=
2
;
// 切洗之后的手牌编号
}
}
// 战斗阶段可操作指示
message
MsgSelectBattleCmd
{
message
BattleCmd
{
enum
BattleType
{
UNKNOWN
=
0
;
ACTIVATE
=
1
;
// 发动效果
ATTACK
=
2
;
// 攻击
}
message
BattleData
{
CardInfo
card_info
=
1
;
int32
effect_description
=
2
;
// `BattleType`为`ACTIVATE`时才会设置这个字段
bool
direct_attackable
=
3
;
// 是否可以直接攻击对手
int32
response
=
4
;
// 用户选择该操作项时,把这个值回传给后端
}
BattleType
battle_type
=
1
;
repeated
BattleData
battle_datas
=
2
;
}
int32
player
=
1
;
// 玩家编号
repeated
BattleCmd
battle_cmds
=
2
;
// 可操作的命令
bool
enable_m2
=
3
;
// 是否可以进入M2阶段
bool
enable_ep
=
4
;
// 是否可以结束回合
}
oneof
gameMsg
{
oneof
gameMsg
{
MsgStart
start
=
1
;
MsgStart
start
=
1
;
MsgDraw
draw
=
2
;
MsgDraw
draw
=
2
;
...
@@ -481,5 +508,6 @@ message StocGameMessage {
...
@@ -481,5 +508,6 @@ message StocGameMessage {
MsgSelectPosition
select_position
=
12
;
MsgSelectPosition
select_position
=
12
;
MsgSelectOption
select_option
=
13
;
MsgSelectOption
select_option
=
13
;
MsgShuffleHand
shuffle_hand
=
14
;
MsgShuffleHand
shuffle_hand
=
14
;
MsgSelectBattleCmd
select_battle_cmd
=
15
;
}
}
}
}
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