Exemplo n.º 1
0
 public override bool DeSerialize(byte[] data, Pointer p)
 {
     base.DeSerialize(data, p);
     Phase           = BitPacker.GetSerializableWispObject(data, p) as Phase;
     PhaseUpdateKind = (PacketPhaseUpdate.UpdateKind)BitPacker.GetByte(data, p);
     return(true);
 }
Exemplo n.º 2
0
 public override bool DeSerialize(byte[] data, Pointer p)
 {
     base.DeSerialize(data, p);
     OriginServer = BitPacker.GetString(data, p);
     TargetServer = BitPacker.GetString(data, p);
     To           = new Guid(BitPacker.GetString(data, p));
     From         = BitPacker.GetSerializableWispObject(data, p) as CharacterInfo;
     Message      = BitPacker.GetBytes(data, p);
     return(true);
 }
        public override bool DeSerialize(byte[] data, Pointer p)
        {
            base.DeSerialize(data, p);
            Profile        = (AccountProfile)BitPacker.GetSerializableWispObject(data, p);
            TargetResource = new Guid(BitPacker.GetString(data, p));
            Player         = new Guid(BitPacker.GetString(data, p));
            AuthTicket     = new Guid(BitPacker.GetString(data, p));
            AccountName    = BitPacker.GetString(data, p);

            return(true);
        }
Exemplo n.º 4
0
        public override void DeserializeValue(byte[] dat, Pointer p)
        {
            int num = BitPacker.GetInt(dat, p);

            m_Value = new ISerializableWispObject[num];
            for (int i = 0; i < num; i++)
            {
                Name       = BitPacker.GetString(dat, p);
                m_Value[i] = BitPacker.GetSerializableWispObject(dat, p);
            }
        }
Exemplo n.º 5
0
        public override bool DeSerialize(byte[] data, Pointer p)
        {
            base.DeSerialize(data, p);
            Player         = new Guid(BitPacker.GetString(data, p));
            SharedSecret   = new Guid(BitPacker.GetString(data, p));
            AccountName    = BitPacker.GetString(data, p);
            TargetResource = new Guid(BitPacker.GetString(data, p));
            Profile        = (AccountProfile)BitPacker.GetSerializableWispObject(data, p);
            bool haveCharacterData = BitPacker.GetBool(data, p);

            if (haveCharacterData)
            {
                Character = BitPacker.GetComponent(data, p) as ServerCharacterInfo;
            }
            OwningServer = BitPacker.GetString(data, p);
            return(true);
        }
Exemplo n.º 6
0
        public override void Deserialize(byte[] data, Pointer p, bool includeComponents)
        {
            m_CharacterInfo = new Shared.CharacterInfo();
            m_CharacterInfo.Deserialize(data, p, includeComponents);

            ServerUser su = new ServerUser();

            su.AuthTicket = Guid.Empty;

            su.OwningServer = BitPacker.GetString(data, p);
            su.ID           = new Guid(BitPacker.GetString(data, p));
            su.AccountName  = BitPacker.GetString(data, p);

            su.Profile = (AccountProfile)BitPacker.GetSerializableWispObject(data, p);

            su.CurrentCharacter = this;
            this.TargetResource = new Guid(BitPacker.GetString(data, p));

            OwningAccount = su;

            base.Deserialize(data, p, includeComponents);
        }
Exemplo n.º 7
0
 public override void DeserializeValue(byte[] dat, Pointer p)
 {
     Name    = BitPacker.GetString(dat, p);
     m_Value = BitPacker.GetSerializableWispObject(dat, p);
 }