Commit 827d67e6 authored by mercury233's avatar mercury233

StocMessage_DeckCount

parent 7dfa0699
...@@ -125,6 +125,9 @@ public static class TcpHelper ...@@ -125,6 +125,9 @@ public static class TcpHelper
Program.I().room.StocMessage_WaitingSide(r); Program.I().room.StocMessage_WaitingSide(r);
TcpHelper.SaveRecord(); TcpHelper.SaveRecord();
break; break;
case StocMessage.DeckCount:
Program.I().room.StocMessage_DeckCount(r);
break;
case StocMessage.CreateGame: case StocMessage.CreateGame:
Program.I().room.StocMessage_CreateGame(r); Program.I().room.StocMessage_CreateGame(r);
break; break;
......
...@@ -205,6 +205,20 @@ public class Room : WindowServantSP ...@@ -205,6 +205,20 @@ public class Room : WindowServantSP
AddChatMsg(str, player); AddChatMsg(str, player);
} }
public void StocMessage_DeckCount(BinaryReader r)
{
int deck0=r.ReadInt16();
int extra0=r.ReadInt16();
int side0=r.ReadInt16();
int deck1=r.ReadInt16();
int extra1=r.ReadInt16();
int side1=r.ReadInt16();
string str= InterString.Get("对方主卡组:[?]张", deck1.ToString()) +
InterString.Get(",额外卡组:[?]张", extra1.ToString()) +
InterString.Get(",副卡组:[?]张", side1.ToString());
AddChatMsg(str, 10);
}
public void AddChatMsg(string msg, int player) public void AddChatMsg(string msg, int player)
{ {
string result = ""; string result = "";
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
TpResult = 0x6, TpResult = 0x6,
ChangeSide = 0x7, ChangeSide = 0x7,
WaitingSide = 0x8, WaitingSide = 0x8,
DeckCount = 0x9,
CreateGame = 0x11, CreateGame = 0x11,
JoinGame = 0x12, JoinGame = 0x12,
TypeChange = 0x13, TypeChange = 0x13,
......
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