示例#1
0
        public override int writeToBuff(ref NetOutputBuffer buff)
        {
            buff.WriteUint(m_ObjID);
            buff.WriteUint(m_idOwner);
            buff.WriteUint(m_MonsterID);
            //byte[] bytes = NET_DEFINE.StructToBytes(m_posWorld);
            //buff.Write(ref bytes, Marshal.SizeOf(m_posWorld));
            buff.WriteStruct(m_posWorld);
            buff.WriteInt(m_OBJType);

            return(NET_DEFINE.PACKET_HEADER_SIZE + getSize());
        }