Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
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
perfectdicky
YGOProUnity_V2
Commits
827d67e6
Commit
827d67e6
authored
May 01, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StocMessage_DeckCount
parent
7dfa0699
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+3
-0
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+14
-0
Assets/YGOSharp/Enums/StocMessage.cs
Assets/YGOSharp/Enums/StocMessage.cs
+1
-0
No files found.
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
827d67e6
...
...
@@ -125,6 +125,9 @@ public static class TcpHelper
Program
.
I
().
room
.
StocMessage_WaitingSide
(
r
);
TcpHelper
.
SaveRecord
();
break
;
case
StocMessage
.
DeckCount
:
Program
.
I
().
room
.
StocMessage_DeckCount
(
r
);
break
;
case
StocMessage
.
CreateGame
:
Program
.
I
().
room
.
StocMessage_CreateGame
(
r
);
break
;
...
...
Assets/SibylSystem/Room/Room.cs
View file @
827d67e6
...
...
@@ -205,6 +205,20 @@ public class Room : WindowServantSP
AddChatMsg
(
str
,
player
);
}
public
void
StocMessage_DeckCount
(
BinaryReader
r
)
{
int
deck0
=
r
.
ReadInt16
();
int
extra0
=
r
.
ReadInt16
();
int
side0
=
r
.
ReadInt16
();
int
deck1
=
r
.
ReadInt16
();
int
extra1
=
r
.
ReadInt16
();
int
side1
=
r
.
ReadInt16
();
string
str
=
InterString
.
Get
(
"对方主卡组:[?]张"
,
deck1
.
ToString
())
+
InterString
.
Get
(
",额外卡组:[?]张"
,
extra1
.
ToString
())
+
InterString
.
Get
(
",副卡组:[?]张"
,
side1
.
ToString
());
AddChatMsg
(
str
,
10
);
}
public
void
AddChatMsg
(
string
msg
,
int
player
)
{
string
result
=
""
;
...
...
Assets/YGOSharp/Enums/StocMessage.cs
View file @
827d67e6
...
...
@@ -10,6 +10,7 @@
TpResult
=
0x6
,
ChangeSide
=
0x7
,
WaitingSide
=
0x8
,
DeckCount
=
0x9
,
CreateGame
=
0x11
,
JoinGame
=
0x12
,
TypeChange
=
0x13
,
...
...
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