Beispiel #1
0
        public void NotifyUnitAnnounceEvent(UnitAnnounces messageId, IAttackableUnit target, IGameObject killer = null,
                                            List <IChampion> assists = null)
        {
            var announce = new UnitAnnounce(messageId, target, killer, assists);

            _packetHandlerManager.BroadcastPacket(announce, Channel.CHL_S2C);
        }
Beispiel #2
0
        public void notifyUnitAnnounceEvent(UnitAnnounces messageId, Unit target, GameObject killer = null, List <Champion> assists = null)
        {
            UnitAnnounce announce;

            announce = new UnitAnnounce(messageId, target, killer, assists);
            _game.PacketHandlerManager.broadcastPacket(announce, Channel.CHL_S2C);
        }
 public UnitAnnounceEventResponse(UnitAnnounces messageId, IAttackableUnit target, IGameObject killer = null, List <IChampion> assists = null)
 {
     MessageId = messageId;
     Target    = target;
     Killer    = killer;
     Assists   = assists;
 }
Beispiel #4
0
        public UnitAnnounce(UnitAnnounces id, AttackableUnit target, GameObject killer = null, List <Champion> assists = null)
            : base(PacketCmd.PKT_S2C_Announce2, target.NetId)
        {
            if (assists == null)
            {
                assists = new List <Champion>();
            }

            buffer.Write((byte)id);
            if (killer != null)
            {
                buffer.Write((long)killer.NetId);
                buffer.Write((int)assists.Count);
                foreach (var a in assists)
                {
                    buffer.Write((uint)a.NetId);
                }
                for (int i = 0; i < 12 - assists.Count; i++)
                {
                    buffer.Write((int)0);
                }
            }
        }
Beispiel #5
0
        public UnitAnnounce(UnitAnnounces id, IAttackableUnit target, IGameObject killer = null, List <IChampion> assists = null)
            : base(PacketCmd.PKT_S2C_ANNOUNCE2, target.NetId)
        {
            if (assists == null)
            {
                assists = new List <IChampion>();
            }

            Write((byte)id);
            if (killer != null)
            {
                Write((long)killer.NetId);
                Write(assists.Count);
                foreach (var a in assists)
                {
                    WriteNetId(a);
                }

                for (var i = 0; i < 12 - assists.Count; i++)
                {
                    Write(0);
                }
            }
        }