Example #1
0
 public void ReceivePacketPlayerPosition(PacketPlayerPosition ppp)
 {
     //Console.WriteLine("Packet received: "+ppp.FugamId.GameID);
     foreach (ClientHandler client in _clients)
     {
         if (!client.FugamId.Equals(ppp.FugamId))
         {
             //Console.WriteLine("Send packet to: " + client.FugamId.GameID);
             ServerIO.Send(client.Client.GetStream(), ppp);
         }
     }
 }
Example #2
0
 public virtual void ResponePacketPlayerPosition(PacketPlayerPosition ppp)
 {
 }
Example #3
0
 public override void ResponePacketPlayerPosition(PacketPlayerPosition ppp)
 {
     foreach (Player p in _otherPlayers)
     {
         if (p.fid.Equals(ppp.FugamId))
         {
             p.x = ppp.X;
             p.y = ppp.Y;
             break;
         }
     }
 }