Commit b4da6453 authored by mercury233's avatar mercury233

fix match mode

parent dae77466
......@@ -14,6 +14,10 @@ namespace WindBot.Game
public IList<ClientCard> ExtraDeck { get; private set; }
public ClientField()
{
}
public void Init(int deck, int extra)
{
Hand = new List<ClientCard>();
MonsterZone = new ClientCard[5];
......@@ -22,10 +26,7 @@ namespace WindBot.Game
Banished = new List<ClientCard>();
Deck = new List<ClientCard>();
ExtraDeck = new List<ClientCard>();
}
public void Init(int deck, int extra)
{
for (int i = 0; i < deck; ++i)
Deck.Add(new ClientCard(0, CardLocation.Deck));
for (int i = 0; i < extra; ++i)
......
......@@ -73,6 +73,7 @@ namespace WindBot.Game
_packets.Add(StocMessage.Replay, OnReplay);
_packets.Add(StocMessage.DuelEnd, OnDuelEnd);
_packets.Add(StocMessage.Chat, OnChat);
_packets.Add(StocMessage.ChangeSide, OnJoinGame);
_messages.Add(GameMessage.Retry, OnRetry);
_messages.Add(GameMessage.Start, OnStart);
......
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