Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
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
love_飞影
Neos
Commits
5511a542
Commit
5511a542
authored
Aug 13, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ygopro.proto
parent
e1d53625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
src/ygopro.proto
src/ygopro.proto
+65
-0
No files found.
src/ygopro.proto
0 → 100644
View file @
5511a542
syntax
=
"proto3"
;
package
ygopro
;
option
go_package
=
"DarkNeos/ygopropb"
;
message
YgoCtosMsg
{
int32
proto
=
1
;
oneof
msg
{
CtosPlayerInfo
ctos_player_info
=
2
;
CtosJoinGame
ctos_join_game
=
3
;
CtosUpdateDeck
ctos_update_deck
=
4
;
StocJoinGame
stoc_join_game
=
101
;
StocChat
stoc_chat
=
102
;
StocHsPlayerEnter
stoc_hs_player_enter
=
103
;
StocTypeChange
stoc_type_change
=
104
;
}
}
// ----- CTOS -----
message
CtosPlayerInfo
{
string
name
=
1
;
}
message
CtosJoinGame
{
int32
version
=
1
;
int32
gameid
=
2
;
string
passwd
=
3
;
}
message
CtosUpdateDeck
{
repeated
int32
main
=
1
;
repeated
int32
extra
=
2
;
repeated
int32
side
=
3
;
}
// ----- STOC -----
message
StocJoinGame
{
int32
lflist
=
1
;
int32
rule
=
2
;
int32
mode
=
3
;
int32
duel_rule
=
4
;
bool
no_check_deck
=
5
;
bool
no_shuffle_deck
=
6
;
int32
start_lp
=
7
;
int32
start_hand
=
8
;
int32
draw_count
=
9
;
int32
time_limit
=
10
;
}
message
StocChat
{
int32
player
=
1
;
string
msg
=
2
;
}
message
StocHsPlayerEnter
{
string
name
=
1
;
int32
pos
=
2
;
}
message
StocTypeChange
{
int32
type
=
1
;
}
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