Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-proxy
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
ygopro-proxy
Commits
453aa29f
Commit
453aa29f
authored
Oct 05, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle StocHsPlayerChange
parent
9b75358c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
DarkNeos/transform.go
DarkNeos/transform.go
+21
-4
No files found.
DarkNeos/transform.go
View file @
453aa29f
...
...
@@ -26,10 +26,11 @@ const (
CtosProtoJoinGame
=
18
CtosHsReady
=
34
StocJoinGame
=
18
StocTypeChange
=
19
StocChat
=
25
StocHsPlayerEnter
=
32
StocJoinGame
=
18
StocTypeChange
=
19
StocChat
=
25
StocHsPlayerEnter
=
32
StocHsPlayerChange
=
33
)
type
YgoPacket
struct
{
...
...
@@ -134,6 +135,8 @@ func Transform(src []byte, tranformType int, ctx *util.Context) ([]byte, error)
pb
=
pStocHsPlayerEnter
{}
.
Packet2Pb
(
packet
)
case
StocTypeChange
:
pb
=
pStocTypeChage
{}
.
Packet2Pb
(
packet
)
case
StocHsPlayerChange
:
pb
=
pStocHsPlayerChange
{}
.
Packet2Pb
(
packet
)
default
:
return
nil
,
errors
.
New
(
fmt
.
Sprintf
(
COMPONENT
+
"Unhandled YgoStocMsg type, proto=%d"
,
packet
.
Proto
))
}
...
...
@@ -320,3 +323,17 @@ func (_ pStocTypeChage) Packet2Pb(pkt YgoPacket) ygopropb.YgoStocMsg {
Msg
:
&
msg
,
}
}
type
pStocHsPlayerChange
struct
{}
func
(
_
pStocHsPlayerChange
)
Packet2Pb
(
pkt
YgoPacket
)
ygopropb
.
YgoStocMsg
{
msg
:=
ygopropb
.
YgoStocMsg_StocHsPlayerChange
{
StocHsPlayerChange
:
&
ygopropb
.
StocHsPlayerChange
{
Status
:
int32
(
pkt
.
Exdata
[
0
]),
},
}
return
ygopropb
.
YgoStocMsg
{
Msg
:
&
msg
,
}
}
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