public static void Handle(Entities.GameClient client, DataPacket packet)
 {
     using (var stats = new CharacterStatsPacket(packet))
     {
         if (stats.EntityUID != client.EntityUID)
         {
             Entities.GameClient viewclient;
             if (Core.Kernel.Clients.TrySelect(stats.EntityUID, out viewclient))
                 client.Send(viewclient.CreateStatsPacket());
         }
         else
             client.Send(client.CreateStatsPacket());
     }
 }
예제 #2
0
 /// <summary>
 /// Handling the QueryStatInfo action from GeneralDataPacket.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="General">The GeneralDataPacket.</param>
 public static void Handle(Entities.GameClient client, GeneralDataPacket General)
 {
     client.BaseEntity.CalculateBaseStats(); // just in case ...
     client.Send(client.CreateStatsPacket());
 }