public override byte[] Serialize(Pointer p)
        {
            base.Serialize(p);
            BitPacker.AddSerializableWispObject(ref m_SerializeBuffer, p, Profile);
            BitPacker.AddString(ref m_SerializeBuffer, p, TargetResource.ToString());
            BitPacker.AddString(ref m_SerializeBuffer, p, Player.ToString());
            BitPacker.AddString(ref m_SerializeBuffer, p, AuthTicket.ToString());
            BitPacker.AddString(ref m_SerializeBuffer, p, AccountName);

            return(m_SerializeBuffer);
        }
Пример #2
0
 public override byte[] Serialize(Pointer p)
 {
     base.Serialize(p);
     BitPacker.AddString(ref m_SerializeBuffer, p, AuthTicket.ToString());
     BitPacker.AddString(ref m_SerializeBuffer, p, ServerName);
     BitPacker.AddString(ref m_SerializeBuffer, p, ServerIP);
     BitPacker.AddInt(ref m_SerializeBuffer, p, ServerPort);
     BitPacker.AddString(ref m_SerializeBuffer, p, TargetResource.ToString());
     BitPacker.AddBool(ref m_SerializeBuffer, p, IsAssistedTransfer);
     return(m_SerializeBuffer);
 }
Пример #3
0
        public override void Serialize(ref byte[] buffer, Pointer p, bool includeComponents)
        {
            m_CharacterInfo.Serialize(ref buffer, p, includeComponents);

            BitPacker.AddString(ref buffer, p, OwningAccount.OwningServer);
            BitPacker.AddString(ref buffer, p, OwningAccount.ID.ToString());
            BitPacker.AddString(ref buffer, p, OwningAccount.AccountName);
            BitPacker.AddSerializableWispObject(ref buffer, p, OwningAccount.Profile);

            BitPacker.AddString(ref buffer, p, TargetResource.ToString());

            base.Serialize(ref buffer, p, includeComponents);
        }