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
fallenstardust
YGOProUnity_V2
Commits
92f049a1
Commit
92f049a1
authored
Dec 30, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix possible deck out of sync
parent
7bbc87a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+9
-14
No files found.
Assets/SibylSystem/Room/Room.cs
View file @
92f049a1
...
@@ -19,22 +19,16 @@ public class Room : WindowServantSP
...
@@ -19,22 +19,16 @@ public class Room : WindowServantSP
void
onSelected
()
void
onSelected
()
{
{
Config
.
Set
(
"deckInUse"
,
superScrollView
.
selectedString
);
if
(
selftype
<
realPlayers
.
Length
&&
realPlayers
[
selftype
]
!=
null
&&
realPlayers
[
selftype
].
getIfPreped
())
if
(
selftype
<
realPlayers
.
Length
)
{
{
if
(
realPlayers
[
selftype
]
!=
null
)
TcpHelper
.
CtosMessage_HsNotReady
();
{
TcpHelper
.
CtosMessage_UpdateDeck
(
new
YGOSharp
.
Deck
(
"deck/"
+
superScrollView
.
selectedString
+
".ydk"
));
if
(
realPlayers
[
selftype
].
getIfPreped
()
==
true
)
TcpHelper
.
CtosMessage_HsReady
();
{
}
TcpHelper
.
CtosMessage_HsNotReady
();
else
TcpHelper
.
CtosMessage_UpdateDeck
(
new
YGOSharp
.
Deck
(
"deck/"
+
Config
.
Get
(
"deckInUse"
,
"wizard"
)
+
".ydk"
));
{
TcpHelper
.
CtosMessage_HsReady
();
Config
.
Set
(
"deckInUse"
,
superScrollView
.
selectedString
);
}
}
}
}
}
}
void
printFile
()
void
printFile
()
...
@@ -688,6 +682,7 @@ public class Room : WindowServantSP
...
@@ -688,6 +682,7 @@ public class Room : WindowServantSP
void
realize
()
void
realize
()
{
{
Config
.
Set
(
"deckInUse"
,
superScrollView
.
selectedString
);
string
description
=
""
;
string
description
=
""
;
if
(
mode
==
0
)
if
(
mode
==
0
)
{
{
...
...
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