示例#1
0
 private void SetHealth(Client client, short health)
 {
     if (health > 20)
     {
         health = 20;
     }
     client.SendPacket(new UpdateHealthPacket { Health = health });
 }
示例#2
0
 private static void ChangeGameMode(Client client, int mode)
 {
     client.SendPacket(new NewInvalidStatePacket
     {
         GameMode = client.Owner.GameMode = Convert.ToByte(mode),
         Reason = NewInvalidStatePacket.NewInvalidReason.ChangeGameMode
     });
 }