Ejemplo n.º 1
0
        public void NotifyBlueTip(int userId, string title, string text, string imagePath, byte tipCommand, uint playerNetId,
                                  uint targetNetId)
        {
            var packet = new BlueTip(title, text, imagePath, tipCommand, playerNetId, targetNetId);

            _packetHandlerManager.SendPacket(userId, packet, Channel.CHL_S2C);
        }
Ejemplo n.º 2
0
        public bool HandlePacket(Peer peer, byte[] data, Game game)
        {
            var blueTipClicked = new BlueTipClicked(data);
            var removeBlueTip  = new BlueTip("", "", game.GetPeerInfo(peer).GetChampion().getNetId(), blueTipClicked.netid, true);

            game.PacketHandlerManager.sendPacket(peer, removeBlueTip, Channel.CHL_S2C);

            game.ChatboxManager.SendDebugMsgFormatted(GameServer.Logic.Chatbox.ChatboxManager.DebugMsgType.NORMAL, "Clicked blue tip with netid: " + blueTipClicked.netid.ToString());
            return(true);
        }
Ejemplo n.º 3
0
        public override bool HandlePacket(Peer peer, byte[] data)
        {
            var blueTipClicked = new BlueTipClicked(data);
            var removeBlueTip  = new BlueTip(
                "",
                "",
                "",
                0,
                _playerManager.GetPeerInfo(peer).Champion.NetId,
                blueTipClicked.netid);

            _game.PacketHandlerManager.sendPacket(peer, removeBlueTip, Channel.CHL_S2C);
            var msg = $"Clicked blue tip with netid: {blueTipClicked.netid}";

            _chatCommandManager.SendDebugMsgFormatted(DebugMsgType.NORMAL, msg);
            return(true);
        }
Ejemplo n.º 4
0
        public bool HandlePacket(Peer peer, byte[] data)
        {
            var blueTipClicked = new BlueTipClicked(data);
            var removeBlueTip  = new BlueTip(
                "",
                "",
                _playerManager.GetPeerInfo(peer).Champion.NetId,
                blueTipClicked.netid,
                true
                );

            _game.PacketHandlerManager.sendPacket(peer, removeBlueTip, Channel.CHL_S2C);

            _chatboxManager.SendDebugMsgFormatted(
                GameServer.Logic.Chatbox.ChatboxManager.DebugMsgType.NORMAL,
                string.Format("Clicked blue tip with netid: {0}", blueTipClicked.netid.ToString())
                );
            return(true);
        }