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
a8e6ba24
Commit
a8e6ba24
authored
Jan 07, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
idl/ocgcore.proto
idl/ocgcore.proto
+18
-10
No files found.
idl/ocgcore.proto
View file @
a8e6ba24
...
@@ -5,6 +5,14 @@ option go_package = "DarkNeos/ygopropb";
...
@@ -5,6 +5,14 @@ option go_package = "DarkNeos/ygopropb";
// ----- Basic -----
// ----- Basic -----
// 猜拳类型
enum
HandType
{
UNKNOWN
=
0
;
SCISSORS
=
1
;
ROCK
=
2
;
PAPER
=
3
;
}
// 卡牌的区域类型
// 卡牌的区域类型
enum
CardZone
{
enum
CardZone
{
DECK
=
0
;
// 卡组
DECK
=
0
;
// 卡组
...
@@ -142,6 +150,7 @@ message CtosGameMsgResponse {
...
@@ -142,6 +150,7 @@ message CtosGameMsgResponse {
message
SelectCardResponse
{
repeated
int32
selected_ptrs
=
1
;
}
message
SelectCardResponse
{
repeated
int32
selected_ptrs
=
1
;
}
message
SelectChainResponse
{
int32
selected_ptr
=
1
;
}
message
SelectChainResponse
{
int32
selected_ptr
=
1
;
}
message
SelectEffectYnResponse
{
bool
selected
=
1
;
}
message
SelectEffectYnResponse
{
bool
selected
=
1
;
}
message
SelectPositionResponse
{
CardPosition
position
=
1
;
}
oneof
gameMsgResponse
{
oneof
gameMsgResponse
{
SelectIdleCmdResponse
select_idle_cmd
=
1
;
SelectIdleCmdResponse
select_idle_cmd
=
1
;
...
@@ -149,6 +158,7 @@ message CtosGameMsgResponse {
...
@@ -149,6 +158,7 @@ message CtosGameMsgResponse {
SelectCardResponse
select_card
=
3
;
SelectCardResponse
select_card
=
3
;
SelectChainResponse
select_chain
=
4
;
SelectChainResponse
select_chain
=
4
;
SelectEffectYnResponse
select_effect_yn
=
5
;
SelectEffectYnResponse
select_effect_yn
=
5
;
SelectPositionResponse
select_position
=
6
;
}
}
}
}
...
@@ -428,6 +438,13 @@ message StocGameMessage {
...
@@ -428,6 +438,13 @@ message StocGameMessage {
int32
effect_description
=
4
;
// 卡效果
int32
effect_description
=
4
;
// 卡效果
}
}
// 表示形式选择
message
MsgSelectPosition
{
int32
player
=
1
;
// 玩家编号
int32
code
=
2
;
// 卡编号
repeated
CardPosition
positions
=
3
;
// 可选表示形式
}
oneof
gameMsg
{
oneof
gameMsg
{
MsgStart
start
=
1
;
MsgStart
start
=
1
;
MsgDraw
draw
=
2
;
MsgDraw
draw
=
2
;
...
@@ -440,15 +457,6 @@ message StocGameMessage {
...
@@ -440,15 +457,6 @@ message StocGameMessage {
MsgSelectCard
select_card
=
9
;
MsgSelectCard
select_card
=
9
;
MsgSelectChain
select_chain
=
10
;
MsgSelectChain
select_chain
=
10
;
MsgSelectEffectYn
select_effect_yn
=
11
;
MsgSelectEffectYn
select_effect_yn
=
11
;
MsgSelectPosition
select_position
=
12
;
}
}
}
}
// ----- common structs ------
// 猜拳类型
enum
HandType
{
UNKNOWN
=
0
;
SCISSORS
=
1
;
ROCK
=
2
;
PAPER
=
3
;
}
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