Пример #1
0
        public override void Decode()
        {
            base.Decode();

            this.m_avatarStreamEntry = AvatarStreamEntryFactory.CreateStreamEntryByType((AvatarStreamEntryType)this.m_stream.ReadInt());
            this.m_avatarStreamEntry.Decode(this.m_stream);
        }
        public override void Decode()
        {
            base.Decode();

            int cnt = this.m_stream.ReadInt();

            if (cnt != -1)
            {
                this.m_entries = new LogicArrayList <AvatarStreamEntry>(cnt);

                for (int i = 0; i < cnt; i++)
                {
                    AvatarStreamEntry entry = AvatarStreamEntryFactory.CreateStreamEntryByType((AvatarStreamEntryType)this.m_stream.ReadInt());

                    if (entry == null)
                    {
                        Debugger.Warning("Corrupted AvatarStreamMessage");
                        break;
                    }

                    entry.Decode(this.m_stream);
                }
            }
            else
            {
                this.m_entries = null;
            }
        }