Example #1
0
        public override void Deserialize(CRioArchive arc)
        {
            int count = arc.ReadCount();

            SetSize(count);
            for (int i = 0; i < count; ++i)
            {
                m_data[i] = arc.ReadString();
            }
        }
Example #2
0
        public override void Deserialize(CRioArchive arc)
        {
            int count = arc.ReadCount();

            SetSize(count);
            for (int i = 0; i < count; ++i)
            {
                if (arc.ReadBool())
                {
                    var obj = new CType();
                    m_data[i] = obj;
                    obj.Deserialize(arc);
                }
            }
        }
Example #3
0
        public override void Deserialize(CRioArchive arc)
        {
            Version = arc.ReadUInt16();
            if (Version >= 7)
            {
                field_14 = arc.ReadInt32();
                field_18 = arc.ReadInt32();
                arc.ReadByte();
                arc.ReadString();
            }
            arc.ReadString(); // registry branch
            arc.ReadString(); // disk name
            arc.ReadString(); // rio filename [src]
            arc.ReadString();
            arc.ReadString();
            arc.ReadInt64(); // rio offset [=0]
            arc.ReadInt64(); // rio size
            if (Version < 6)
            {
                arc.ReadInt32();
                arc.ReadInt32();
            }
            else
            {
                arc.ReadInt32();
            }
            RioName   = arc.ReadString();
            RioOffset = arc.ReadInt64();
            RioSize   = arc.ReadInt64();
            if (Version < 6)
            {
                arc.ReadInt64();
            }
            arc.ReadInt32();
            arc.ReadString();
            arc.ReadInt32();
            arc.ReadInt32();
            arc.ReadInt32();
            arc.ReadInt32();
            arc.ReadInt32();
            arc.ReadString();
            int count = arc.ReadCount();

            arc.ReadBytes(count * 4);
            PrepareBuffer(); // sub_10011700 (this);
            arc.Read(field_D4, 0, field_D4.Length);
        }