MapServer.PlayerObject.SendHotKeyInfo C# (CSharp) Method

SendHotKeyInfo() public method

public SendHotKeyInfo ( ) : void
return void
        public void SendHotKeyInfo()
        {
            NetMsg.MsgHotKey hotkey = new NetMsg.MsgHotKey();
            hotkey.Create(null, GetGamePackKeyEx());

            hotkey.type = 0;
            hotkey.tag = 214;
            hotkey.tag2 = 4;
            hotkey.str = "";
            for (int i = 0; i < mListHotKey.Count; i++)
            {
                hotkey.str += mListHotKey[i].GetString() + "-";

            }
            this.SendData(hotkey.GetBuffer());

            //通知客户端显示快捷键图标
            PacketOut ooutpack = new PacketOut(GetGamePackKeyEx());
            ooutpack.WriteUInt16(14);
            ooutpack.WriteUInt16(1015);
            ooutpack.WriteInt32(0);
            ooutpack.WriteInt16(656);
            ooutpack.WriteInt32(2);
            this.SendData(ooutpack.Flush());
        }