public override byte[] Serialize(Pointer p) { base.Serialize(p); BitPacker.AddSerializableWispObject(ref m_SerializeBuffer, p, Phase); BitPacker.AddByte(ref m_SerializeBuffer, p, (byte)PhaseUpdateKind); return(m_SerializeBuffer); }
public override void SerializeValue(ref byte[] dat, Pointer p) { BitPacker.AddInt(ref dat, p, m_Value.Length); for (int i = 0; i < m_Value.Length; i++) { BitPacker.AddString(ref dat, p, Name); BitPacker.AddSerializableWispObject(ref dat, p, m_Value[i]); } }
public override byte[] Serialize(Pointer p) { base.Serialize(p); BitPacker.AddString(ref m_SerializeBuffer, p, OriginServer); BitPacker.AddString(ref m_SerializeBuffer, p, TargetServer); BitPacker.AddString(ref m_SerializeBuffer, p, To.ToString()); BitPacker.AddSerializableWispObject(ref m_SerializeBuffer, p, From); BitPacker.AddBytes(ref m_SerializeBuffer, p, Message); return(m_SerializeBuffer); }
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); }
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); }
public override byte[] Serialize(Pointer p) { base.Serialize(p); BitPacker.AddString(ref m_SerializeBuffer, p, Player.ToString()); BitPacker.AddString(ref m_SerializeBuffer, p, SharedSecret.ToString()); BitPacker.AddString(ref m_SerializeBuffer, p, AccountName); BitPacker.AddString(ref m_SerializeBuffer, p, TargetResource.ToString()); BitPacker.AddSerializableWispObject(ref m_SerializeBuffer, p, Profile); BitPacker.AddBool(ref m_SerializeBuffer, p, Character != null); if (Character != null) { BitPacker.AddComponent(ref m_SerializeBuffer, p, Character); } BitPacker.AddString(ref m_SerializeBuffer, p, OwningServer); return(m_SerializeBuffer); }
public override void SerializeValue(ref byte[] dat, Pointer p) { BitPacker.AddString(ref dat, p, Name); BitPacker.AddSerializableWispObject(ref dat, p, m_Value); }