示例#1
0
 internal StanceChangedEventArgs(SpawnAppearanceType appearanceType, short stanceValue)
 {
     AppearanceType = appearanceType;
     StanceValue = stanceValue;
 }
        internal void SendStancePacket(SpawnAppearanceType appearType, Mob mob, short stanceValue, bool wholeZone, bool ignoreSelf, Client target)
        {
            SpawnAppearance sa = new SpawnAppearance((ushort)mob.ID, (ushort)appearType, (uint)stanceValue);
            EQApplicationPacket<SpawnAppearance> saPack = new EQApplicationPacket<SpawnAppearance>(AppOpCode.SpawnAppearance, sa);

            if (wholeZone)
                this.QueuePacketToClients(mob, saPack, ignoreSelf);
            else if (target != null)
                QueuePacketToClient(target, saPack, false, ZoneConnectionState.Connected);
            else if (mob is ZonePlayer)
                QueuePacketToClient(((ZonePlayer)mob).Client, saPack, false, ZoneConnectionState.Connected);
        }
 internal void SendStancePacket(SpawnAppearanceType appearType, Mob mob, bool wholeZone, bool ignoreSelf)
 {
     this.SendStancePacket(appearType, mob, (short)mob.Stance, wholeZone, ignoreSelf);
 }
 internal void SendStancePacket(SpawnAppearanceType appearType, Mob mob, short stanceValue, bool wholeZone, bool ignoreSelf)
 {
     this.SendStancePacket(appearType, mob, stanceValue, wholeZone, ignoreSelf, null);
 }