コード例 #1
0
ファイル: PetHandler.cs プロジェクト: 0xFh/Asda2-Project
 public static void SendActionFeedback(IPacketReceiver receiver, PetActionFeedback feedback)
 {
     using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.SMSG_PET_ACTION_FEEDBACK, 1))
     {
         packet.Write((byte)feedback);
         receiver.Send(packet, false);
     }
 }
コード例 #2
0
        public void SendPetActionFeedback(uint spellId, ActionFeedback msg)
        {
            Unit owner = GetOwner();

            if (!owner || !owner.IsTypeId(TypeId.Player))
            {
                return;
            }

            PetActionFeedback petActionFeedback = new PetActionFeedback();

            petActionFeedback.SpellID  = spellId;
            petActionFeedback.Response = msg;
            owner.ToPlayer().SendPacket(petActionFeedback);
        }
コード例 #3
0
ファイル: PetHandler.cs プロジェクト: KroneckerX/WCell
		public static void SendActionFeedback(IPacketReceiver receiver, PetActionFeedback feedback)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_PET_ACTION_FEEDBACK, 1))
			{
				packet.Write((byte)feedback);

				receiver.Send(packet);
			}
		}