Commit dae77466 authored by mercury233's avatar mercury233

fix CardSort

parent ec3ffa12
...@@ -91,6 +91,7 @@ namespace WindBot.Game ...@@ -91,6 +91,7 @@ namespace WindBot.Game
_messages.Add(GameMessage.PosChange, OnPosChange); _messages.Add(GameMessage.PosChange, OnPosChange);
_messages.Add(GameMessage.Chaining, OnChaining); _messages.Add(GameMessage.Chaining, OnChaining);
_messages.Add(GameMessage.ChainEnd, OnChainEnd); _messages.Add(GameMessage.ChainEnd, OnChainEnd);
_messages.Add(GameMessage.SortCard, OnCardSorting);
_messages.Add(GameMessage.SortChain, OnChainSorting); _messages.Add(GameMessage.SortChain, OnChainSorting);
_messages.Add(GameMessage.UpdateCard, OnUpdateCard); _messages.Add(GameMessage.UpdateCard, OnUpdateCard);
_messages.Add(GameMessage.UpdateData, OnUpdateData); _messages.Add(GameMessage.UpdateData, OnUpdateData);
...@@ -423,6 +424,12 @@ namespace WindBot.Game ...@@ -423,6 +424,12 @@ namespace WindBot.Game
//_duel.ChainTargets.Clear(); //_duel.ChainTargets.Clear();
} }
private void OnCardSorting(BinaryReader packet)
{
/*BinaryWriter writer =*/ GamePacketFactory.Create(CtosMessage.Response);
Connection.Send(CtosMessage.Response, -1);
}
private void OnChainSorting(BinaryReader packet) private void OnChainSorting(BinaryReader packet)
{ {
/*BinaryWriter writer =*/ GamePacketFactory.Create(CtosMessage.Response); /*BinaryWriter writer =*/ GamePacketFactory.Create(CtosMessage.Response);
......
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