4 namespace FBServer.Host
8 void DataProcessing(NetIncomingMessage message, ref
Client client)
10 switch (message.ReadByte())
12 case (byte)RMT.NeedMap:
13 Program.Log.Info(
"[Client #" + client.ClientId +
"]Need map !");
14 ReceiveNeedMap(client);
17 Program.Log.Info(
"[Client #" + client.ClientId +
"]Is ready !");
18 ReceiveReady(client, message.ReadString(), message.ReadString());
20 case (byte)RMT.MoveDown:
21 Program.Log.Info(
"[Client #" + client.ClientId +
"]Want to move down !");
24 case (byte)RMT.MoveLeft:
25 Program.Log.Info(
"[Client #" + client.ClientId +
"]Want to move left !");
28 case (byte)RMT.MoveRight:
29 Program.Log.Info(
"[Client #" + client.ClientId +
"]Want to move right !");
32 case (byte)RMT.MoveUp:
33 Program.Log.Info(
"[Client #" + client.ClientId +
"]Want to move up !");
36 case (byte)RMT.Standing:
37 Program.Log.Info(
"[Client #" + client.ClientId +
"]Want to stay here !");
40 case (byte)RMT.PlaceBomb:
41 Program.Log.Info(
"[Client #" + client.ClientId +
"]Want to place bomb !");
42 ReceiveBombPlacing(client);