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
de3ce728
Commit
de3ce728
authored
Oct 07, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle CtosHsStart
parent
0289f3f1
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 @
de3ce728
...
...
@@ -25,6 +25,7 @@ const (
CtosProtoPlayerInfo
=
16
CtosProtoJoinGame
=
18
CtosHsReady
=
34
CtosHsStart
=
37
StocJoinGame
=
18
StocTypeChange
=
19
...
...
@@ -114,6 +115,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_CtosHsStart
)
:
packet
=
(
*
pCtosHsStart
)(
message
.
GetCtosHsStart
())
.
Packet2Pb
()
default
:
return
nil
,
errors
.
New
(
COMPONENT
+
"Unhandled YgoCtosMsg type"
)
}
...
...
@@ -228,6 +231,17 @@ func (_ *pCtosHsReady) Pb2Packet() YgoPacket {
}
}
type
pCtosHsStart
ygopropb
.
CtosHsStart
// empty message
func
(
_
*
pCtosHsStart
)
Packet2Pb
()
YgoPacket
{
return
YgoPacket
{
PacketLen
:
1
,
Proto
:
CtosHsStart
,
Exdata
:
make
([]
byte
,
0
),
}
}
// +++++ Server To Client +++++
type
server2Client
interface
{
...
...
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