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
1d156778
Commit
1d156778
authored
Oct 07, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle CtosHsNotReady
parent
ec3f40ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
DarkNeos/transform.go
DarkNeos/transform.go
+14
-0
No files found.
DarkNeos/transform.go
View file @
1d156778
...
...
@@ -25,6 +25,7 @@ const (
CtosProtoPlayerInfo
=
16
CtosProtoJoinGame
=
18
CtosHsReady
=
34
CtosHsNotReady
=
35
CtosHsStart
=
37
StocJoinGame
=
18
...
...
@@ -115,6 +116,8 @@ func Transform(src []byte, tranformType int, ctx *util.Context) ([]byte, error)
packet
=
(
*
pCtosUpdateDeck
)(
message
.
GetCtosUpdateDeck
())
.
Pb2Packet
()
case
*
(
ygopropb
.
YgoCtosMsg_CtosHsReady
)
:
packet
=
(
*
pCtosHsReady
)(
message
.
GetCtosHsReady
())
.
Pb2Packet
()
case
*
(
ygopropb
.
YgoCtosMsg_CtosHsNotReady
)
:
packet
=
(
*
pCtosHsNotReady
)(
message
.
GetCtosHsNotReady
())
.
Pb2Packet
()
case
*
(
ygopropb
.
YgoCtosMsg_CtosHsStart
)
:
packet
=
(
*
pCtosHsStart
)(
message
.
GetCtosHsStart
())
.
Packet2Pb
()
default
:
...
...
@@ -231,6 +234,17 @@ func (_ *pCtosHsReady) Pb2Packet() YgoPacket {
}
}
type
pCtosHsNotReady
ygopropb
.
CtosHsNotReady
// empty message
func
(
_
*
pCtosHsNotReady
)
Pb2Packet
()
YgoPacket
{
return
YgoPacket
{
PacketLen
:
1
,
Proto
:
CtosHsNotReady
,
Exdata
:
make
([]
byte
,
0
),
}
}
type
pCtosHsStart
ygopropb
.
CtosHsStart
// empty message
...
...
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