示例#1
0
 public static void SendMode(IPacketReceiver receiver, IEntity pet, PetAttackMode attackMode, PetAction action,
                             PetFlags flags)
 {
     using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.SMSG_PET_MODE, 12))
     {
         packet.Write(pet.EntityId);
         packet.Write((byte)attackMode);
         packet.Write((byte)action);
         packet.Write((ushort)flags);
         receiver.Send(packet, false);
     }
 }
示例#2
0
		public static void SendMode(IPacketReceiver receiver, IEntity pet, PetAttackMode attackMode,
			PetAction action, PetFlags flags)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_PET_MODE, 12))
			{
				packet.Write(pet.EntityId);
				packet.Write((byte)attackMode);
				packet.Write((byte)action);
				packet.Write((ushort)flags);

				receiver.Send(packet);
			}
		}
示例#3
0
		public static bool Has(this PetFlags flags, PetFlags flag)
        {
            return (flags & flag) != 0;
        }