Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
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
nanahira
ygopro2
Commits
2dd986c0
Commit
2dd986c0
authored
Jun 03, 2024
by
mercury233
Committed by
nanahira
Jun 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add TeammateSurrender
parent
02f74781
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+2
-0
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+7
-0
Assets/YGOSharp/Enums/StocMessage.cs
Assets/YGOSharp/Enums/StocMessage.cs
+1
-0
No files found.
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
2dd986c0
...
...
@@ -175,6 +175,8 @@ public static class TcpHelper
case
StocMessage
.
HsWatchChange
:
Program
.
I
().
room
.
StocMessage_HsWatchChange
(
r
);
break
;
case
StocMessage
.
TeammateSurrender
:
Program
.
I
().
room
.
StocMessage_TeammateSurrender
(
r
);
case
YGOSharp
.
Network
.
Enums
.
StocMessage
.
RoomList
:
((
Room
)
Program
.
I
().
room
).
StocMessage_RoomList
(
r
);
break
;
...
...
Assets/SibylSystem/Room/Room.cs
View file @
2dd986c0
...
...
@@ -594,6 +594,13 @@ public class Room : WindowServantSP
}
public
bool
needSide
=
false
;
public
void
StocMessage_TeammateSurrender
(
BinaryReader
r
)
{
if
(
Program
.
I
().
ocgcore
.
surrended
)
RMSshow_none
(
InterString
.
Get
(
"已申请投降,请等待队友同意。"
));
else
RMSshow_none
(
InterString
.
Get
(
"队友申请投降。若您同意,请点击投降按钮。"
));
}
public
bool
joinWithReconnect
=
false
;
...
...
Assets/YGOSharp/Enums/StocMessage.cs
View file @
2dd986c0
...
...
@@ -23,6 +23,7 @@
HsPlayerEnter
=
0x20
,
HsPlayerChange
=
0x21
,
HsWatchChange
=
0x22
,
TeammateSurrender
=
0x23
RoomList
=
0x31
}
}
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