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
df53ccba
Commit
df53ccba
authored
Nov 06, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add StocGameMessage
parent
ddb6ef6e
Pipeline
#17773
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
idl/ocgcore.proto
idl/ocgcore.proto
+24
-2
No files found.
idl/ocgcore.proto
View file @
df53ccba
...
...
@@ -3,8 +3,6 @@ package ygopro;
option
go_package
=
"DarkNeos/ygopropb"
;
// todo: comment
// reference: https://github.com/mycard/srvpro/blob/master/data/structs.json
message
YgoCtosMsg
{
...
...
@@ -173,6 +171,30 @@ message StocDeckCount {
// 决斗开始!
message
StocDuelStart
{}
// 决斗对局内协议
message
StocGameMessage
{
// 对局开始
message
MsgStart
{
enum
PlayerType
{
UNKNOWN
=
0
;
FirstStrike
=
1
;
// 先攻
SecondStrike
=
2
;
// 后攻
Observer
=
3
;
// 观战者
}
PlayerType
playerType
=
1
;
// 当前玩家的类型
// TODO: 增加大师规则对应的字段
int32
life1
=
2
;
// 玩家一的初始生命值
int32
life2
=
3
;
// 玩家二的初始生命值
int32
deckSize1
=
4
;
// 玩家一的主卡组数量
int32
deckSize2
=
5
;
// 玩家二的主卡组数量
int32
extraSize1
=
6
;
// 玩家一的额外卡组数量
int32
extraSize2
=
7
;
// 玩家二的额外卡组数量
}
oneof
gameMsg
{
MsgStart
start
=
1
;
}
}
// ----- common structs ------
// 猜拳类型
...
...
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