Esempio n. 1
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteByte(m_Save);
     buff.WriteInt(m_AmountMoney);
     buff.WriteInt(m_AmountRMB);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_nType);
     buff.WriteInt(m_ObjID);
     m_PetGUID.writeToBuff(ref buff);
     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. 4
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_ObjID);
     buff.WriteInt(m_nHandleID);
     m_posWorld.writeToBuff(ref buff);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_ObjID);
     buff.WriteInt(m_logicCount);
     buff.WriteInt(m_nModifyTime);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_nObjID);
     buff.WriteInt(m_nLogicCount);
     m_TargetList.writeToBuff(ref buff);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_ObjID);
     buff.WriteInt(m_SkillDataID);
     buff.WriteInt(m_TargetID);
     m_posTarget.writeToBuff(ref buff);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 8
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     //包内容, 10为包头偏移
     buff.WriteInt(Result);
     buff.WriteInt(LoginPort);
     buff.Write(ref LoginIP, NET_DEFINE.IP_SIZE);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 9
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt((int)result);
     buff.WriteInt(serverPort);
     buff.Write(ref serverIP, NET_DEFINE.IP_SIZE);
     buff.WriteInt(key);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 10
0
 public int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_nCount);
     for (int i = 0; i < m_nCount; i++)
     {
         buff.WriteInt(m_aIDs[i]);
     }
     return(getSize());
 }
Esempio n. 11
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. 12
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_nReceiverID);
     buff.WriteInt(m_nSenderID);
     buff.WriteShort(m_nSkillID);
     buff.WriteShort(m_nFlag);
     buff.WriteInt(m_nSenderLogicCount);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 13
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteInt(m_ObjID);
            m_posWorld.writeToBuff(ref buff);
            buff.WriteInt((int)m_fDir);
            buff.WriteInt((int)m_fMoveSpeed);
            buff.WriteByte(m_IsNPC);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
Esempio n. 14
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteInt(m_Key);
            buff.WriteInt(m_GUID);
            buff.WriteShort(m_ServerID);
            buff.Write(ref m_szAccount, NET_DEFINE.MAX_ACCOUNT);
            buff.WriteInt(m_nGender);
            buff.WriteInt(m_nCheckVer);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
Esempio n. 15
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_ObjID);
     buff.WriteInt(m_nLogicCount);
     buff.WriteShort(m_SkillDataID);
     m_posUser.writeToBuff(ref buff);
     buff.WriteInt(m_TargetID);
     m_posTarget.writeToBuff(ref buff);
     buff.WriteFloat(m_fDir);
     buff.WriteInt(m_nTotalTime);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 16
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     m_GUID.writeToBuff(ref buff);
     buff.WriteShort(m_Flags.m_wFlags);
     buff.WriteByte(m_byNameSize);
     buff.Write(ref m_szName, m_byNameSize);
     buff.WriteInt(m_StrIncrement);
     buff.WriteInt(m_ConIncrement);
     buff.WriteInt(m_DexIncrement);
     buff.WriteInt(m_SprIncrement);
     buff.WriteInt(m_IntIncrement);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 17
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_nReceiverID);
     buff.WriteShort(m_nBuffID);
     buff.WriteInt(m_bEnable);
     if (m_bEnable != 0)
     {
         buff.WriteInt(m_nSenderID);
         buff.WriteShort(m_nSkillID);
         buff.WriteInt(m_nSenderLogicCount);
         buff.WriteUint(m_nSN);
     }
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 18
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteUint(ObjID);
            buff.WriteUint(StartTime);
            buff.WriteInt(HandleID);
            m_posTarget.writeToBuff(ref buff);
            buff.WriteByte(m_byStopMove);
            if (IsHaveStopInfo())
            {
                PosStop.writeToBuff(ref buff);
                buff.WriteInt(StopLogicCount);
            }

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
Esempio n. 19
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     //包内容, 10为包头偏移
     buff.WriteShort(TurnNumber);
     buff.WriteInt((int)ClientStatus);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 20
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteInt((int)Result);

            if (Result == NET_RESULT_DEFINE.ASKCHARLIST_RESULT.ASKCHARLIST_SUCCESS)
            {
                buff.Write(ref szAccount, NET_DEFINE.MAX_ACCOUNT);
                if (uCharNumber > NET_DEFINE.DB_CHAR_NUMBER)
                {
                    int RealNumber = NET_DEFINE.DB_CHAR_NUMBER;
                    buff.WriteByte((byte)RealNumber);
                    for (int i = 0; i < RealNumber; i++)
                    {
                        CharList[i].writeToBuff(ref buff);
                    }
                }
                else
                {
                    buff.WriteByte(uCharNumber);
                    for (byte i = 0; i < uCharNumber; i++)
                    {
                        //buff.WriteStruct(CharList[i]);
                        CharList[i].writeToBuff(ref buff);
                    }
                }
            }

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
Esempio n. 21
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     //包内容, 10为包头偏移
     buff.Write(ref szAccount, NET_DEFINE.MAX_ACCOUNT);
     buff.WriteInt((int)Result);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 22
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteShort(m_nSkillID);
     buff.WriteShort(m_nImpactID);
     buff.WriteInt(m_nSN);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 23
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteInt(m_ObjID);
     m_posServer.writeToBuff(ref buff);
     m_posClient.writeToBuff(ref buff);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 24
0
    public int writeToBuff(ref NetOutputBuffer buff)
    {
        buff.WriteByte(m_SettingType);
        buff.WriteInt(m_SettingData);

        return(getSize());
    }
Esempio n. 25
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());
        }
Esempio n. 26
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            int enumindex = (int)dieResultCode;

            buff.WriteInt(enumindex);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }
Esempio n. 27
0
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     //包内容, 10为包头偏移 [12/9/2011 ZL]
     buff.Write(ref szAccount, NET_DEFINE.MAX_ACCOUNT);
     buff.Write(ref szPassWord, NET_DEFINE.MAX_PASSWORD);
     buff.WriteInt(uVersion);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
 public override int writeToBuff(ref NetOutputBuffer buff)
 {
     buff.WriteUint(m_idNPC);
     buff.WriteInt(m_idScript);
     buff.WriteUint(m_idSelectRadio);
     buff.WriteByte(ucIgnoreStop);
     return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
 }
Esempio n. 29
0
 public int writeToBuff(ref NetOutputBuffer buff)
 {
     for (int i = 0; i < (int)CHAR_ATTR_LEVEL1.CATTR_LEVEL1_NUMBER; i++)
     {
         buff.WriteInt(m_pAttr[i]);
     }
     return(getSize());
 }
Esempio n. 30
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteInt(charGuid);
            buff.WriteShort(playerID);

            //包内容, 10为包头偏移 [12/9/2011 ZL]
            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }