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
1
Issues
1
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
YGOProUnity_V2
Commits
c7e5d73f
Commit
c7e5d73f
authored
Jun 03, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-tag-surrender' into 'master'
add TeammateSurrender See merge request
!6
parents
863cea17
a57d3aa1
Pipeline
#27492
canceled with stages
in 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+3
-0
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+8
-0
Assets/YGOSharp/Enums/StocMessage.cs
Assets/YGOSharp/Enums/StocMessage.cs
+2
-1
No files found.
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
c7e5d73f
...
...
@@ -178,6 +178,9 @@ public static class TcpHelper
case
StocMessage
.
HsWatchChange
:
Program
.
I
().
room
.
StocMessage_HsWatchChange
(
r
);
break
;
case
StocMessage
.
TeammateSurrender
:
Program
.
I
().
room
.
StocMessage_TeammateSurrender
(
r
);
break
;
}
}
catch
(
Exception
e
)
...
...
Assets/SibylSystem/Room/Room.cs
View file @
c7e5d73f
...
...
@@ -339,6 +339,14 @@ public class Room : WindowServantSP
RMSshow_none
(
InterString
.
Get
(
"请耐心等待双方玩家更换副卡组。"
));
}
public
void
StocMessage_TeammateSurrender
(
BinaryReader
r
)
{
if
(
Program
.
I
().
ocgcore
.
surrended
)
RMSshow_none
(
InterString
.
Get
(
"已申请投降,请等待队友同意。"
));
else
RMSshow_none
(
InterString
.
Get
(
"队友申请投降。若您同意,请点击投降按钮。"
));
}
public
bool
needSide
;
public
bool
joinWithReconnect
;
...
...
Assets/YGOSharp/Enums/StocMessage.cs
View file @
c7e5d73f
...
...
@@ -22,6 +22,7 @@
Chat
=
0x19
,
HsPlayerEnter
=
0x20
,
HsPlayerChange
=
0x21
,
HsWatchChange
=
0x22
HsWatchChange
=
0x22
,
TeammateSurrender
=
0x23
}
}
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