Commit f9d23dbf authored by 神楽坂玲奈's avatar 神楽坂玲奈
parents 268546be c458ea69
Pipeline #5244 passed with stages
in 4 minutes and 17 seconds
......@@ -258,6 +258,8 @@ public static class TcpHelper
public static void CtosMessage_UpdateDeck(Deck deckFor)
{
if (deckFor.Main.Count == 0)
return;
deckStrings.Clear();
deck = deckFor;
var message = new Package();
......
......@@ -21,16 +21,13 @@ public class Room : WindowServantSP
private void onSelected()
{
Config.Set("deckInUse", superScrollView.selectedString);
if (selftype < realPlayers.Length && realPlayers[selftype] != null && realPlayers[selftype].getIfPreped())
{
TcpHelper.CtosMessage_HsNotReady();
TcpHelper.CtosMessage_UpdateDeck(new Deck("deck/" + superScrollView.selectedString + ".ydk"));
TcpHelper.CtosMessage_HsReady();
}
else
{
Config.Set("deckInUse", superScrollView.selectedString);
}
}
private void printFile()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment