コード例 #1
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);
        }
コード例 #2
0
ファイル: ServerCharacterInfo.cs プロジェクト: kamilion/WISP
        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);
        }