示例#1
0
 public static byte[] SendSelectedSkill(SelectSkillInfo i)
 {
     Packet p = new Packet(20);
     p.WriteHexString("00");
     p.WriteByte(i.Row);
     p.WriteInt(i.SkillID);
     p.WriteByte(i.Slot);
     return p.GetWrittenBuffer(PacketIds.SendSelectedSkill);
 }
示例#2
0
 public ClientSelectSkillEventArgs(SelectSkillInfo i)
 {
     info = i;
 }
示例#3
0
        public static SelectSkillInfo RecvSelectSkill(Packet p)
        {
            p.Skip(2);
            byte row = p.ReadByte();
            int skillid = p.ReadInt();
            byte slot = p.ReadByte();

            SelectSkillInfo i = new SelectSkillInfo
            {
                Row = row,
                SkillID = skillid,
                Slot = slot
            };

            return i;
        }