Esempio n. 1
0
 public int writeToBuff(ref NetOutputBuffer buff)
 {
     m_Attr.writeToBuff(ref buff);
     buff.WriteUint(m_uPrice);
     buff.WriteUint(m_uBaseExp);   //被吃后经验
     buff.WriteUint(m_uCurExp);    //当前经验
     return(getSize());
 }
Esempio n. 2
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteUint(objId);
            buff.WriteInt((int)m_Mode);
            buff.WriteUint(m_wPartFlags);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteUint(m_ObjID);
            buff.WriteUint(m_uMissionListFlags);
            m_listMission.writeToBuff(ref buff);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
Esempio n. 4
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteShort(m_Ability);
     buff.WriteInt(m_Prescription);
     buff.WriteUint(m_Platform);
     buff.WriteUint(m_SpecialFlag);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 5
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteByte(m_nndex);
            buff.WriteByte(m_uSerialNum);
            buff.WriteUint(m_UniqueID);
            m_ItemGuid.writeToBuff(ref buff);
            buff.WriteUint(m_BuyNum);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteUint(m_idNPC);
     buff.WriteInt(m_idScript);
     buff.WriteInt(m_idExIndex);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 7
0
        public int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteByte(m_nndex);
            m_ItemID.writeToBuff(ref buff);
            buff.WriteUint(m_ItemTableIndex);
            buff.WriteByte(m_Count);

            return getSize();
        }
Esempio n. 8
0
 public int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_nSenderID);
     buff.WriteShort(m_nBuffID);
     buff.WriteShort(m_nSkillID);
     buff.WriteUint(m_nSN);
     buff.WriteInt(m_nContinuance);
     return(getSize());
 }
Esempio n. 9
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteUint(m_ItemBoxID);
            buff.WriteByte(m_ItemNumber);
            buff.WriteUShort(m_ItemBoxType);

            for (int i = 0; i < m_ItemNumber; i++)
            {
                m_ItemList[i].writeToBuff(ref buff);
            }
            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }