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
f2e3014c
Commit
f2e3014c
authored
Dec 25, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add select place service
parent
1ba7de35
Pipeline
#18827
failed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
8 deletions
+48
-8
idl/ocgcore.proto
idl/ocgcore.proto
+48
-8
No files found.
idl/ocgcore.proto
View file @
f2e3014c
...
@@ -3,6 +3,33 @@ package ygopro;
...
@@ -3,6 +3,33 @@ package ygopro;
option
go_package
=
"DarkNeos/ygopropb"
;
option
go_package
=
"DarkNeos/ygopropb"
;
// ----- Basic -----
// 卡牌的区域类型
enum
CardZone
{
UNKNOWN
=
0
;
DECK
=
1
;
// 卡组
HAND
=
2
;
// 手牌
MZONE
=
3
;
// 怪兽区
SZONE
=
4
;
// 魔法陷阱区
GRAVE
=
5
;
// 墓地
REMOVED
=
6
;
// 除外
EXTRA
=
7
;
// 额外卡组
OVERLAY
=
8
;
// 超量叠加
ONFIELD
=
9
;
// 场地
FZONE
=
10
;
// TODO
PZONE
=
11
;
// 灵摆区
}
message
CardInfo
{
int32
code
=
1
;
int32
controler
=
2
;
int32
location
=
3
;
int32
sequence
=
4
;
}
// ----- Service -----
// reference: https://github.com/mycard/srvpro/blob/master/data/structs.json
// reference: https://github.com/mycard/srvpro/blob/master/data/structs.json
message
YgoCtosMsg
{
message
YgoCtosMsg
{
...
@@ -88,8 +115,16 @@ message CtosTimeConfirm {}
...
@@ -88,8 +115,16 @@ message CtosTimeConfirm {}
// 决斗对局内协议
// 决斗对局内协议
message
CtosGameMsgResponse
{
message
CtosGameMsgResponse
{
message
SelectIdleCmdResponse
{
int32
code
=
1
;
}
message
SelectIdleCmdResponse
{
int32
code
=
1
;
}
message
SelectPlaceResponse
{
int32
player
=
1
;
CardZone
zone
=
2
;
int32
sequence
=
3
;
}
oneof
gameMsgResponse
{
SelectIdleCmdResponse
select_idle_cmd
=
1
;
}
oneof
gameMsgResponse
{
SelectIdleCmdResponse
select_idle_cmd
=
1
;
SelectPlaceResponse
select_place
=
2
;
}
}
}
// ----- STOC -----
// ----- STOC -----
...
@@ -193,13 +228,6 @@ message StocTimeLimit {
...
@@ -193,13 +228,6 @@ message StocTimeLimit {
// 决斗对局内协议
// 决斗对局内协议
message
StocGameMessage
{
message
StocGameMessage
{
// 一些对局内共用的结构
message
CardInfo
{
int32
code
=
1
;
int32
controler
=
2
;
int32
location
=
3
;
int32
sequence
=
4
;
}
// 对局开始
// 对局开始
message
MsgStart
{
message
MsgStart
{
...
@@ -307,6 +335,17 @@ message StocGameMessage {
...
@@ -307,6 +335,17 @@ message StocGameMessage {
bool
enable_shuffle
=
5
;
bool
enable_shuffle
=
5
;
}
}
// 位置选择操作提示
message
MsgSelectPlace
{
message
SelectAblePlace
{
int32
player
=
1
;
CardZone
zone
=
2
;
int32
sequence
=
3
;
}
repeated
SelectAblePlace
places
=
1
;
}
oneof
gameMsg
{
oneof
gameMsg
{
MsgStart
start
=
1
;
MsgStart
start
=
1
;
MsgDraw
draw
=
2
;
MsgDraw
draw
=
2
;
...
@@ -314,6 +353,7 @@ message StocGameMessage {
...
@@ -314,6 +353,7 @@ message StocGameMessage {
MsgNewPhase
new_phase
=
4
;
MsgNewPhase
new_phase
=
4
;
MsgHint
hint
=
5
;
MsgHint
hint
=
5
;
MsgSelectIdleCmd
select_idle_cmd
=
6
;
MsgSelectIdleCmd
select_idle_cmd
=
6
;
MsgSelectPlace
select_place
=
7
;
}
}
}
}
...
...
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