Exemplo n.º 1
0
        public override void Deserialize(DataStream dataStream)
        {
            entries.Clear();

            this.listType = (DDFType)dataStream.ReadByte();

            ushort count = dataStream.ReadUShort();

            for (int i = 0; i < count; i++)
            {
                DDFBase entry = DDFFactory.Create(listType);

                entry.Deserialize(dataStream);

                entries.Add(entry);
            }
        }
Exemplo n.º 2
0
        public override void Deserialize(DataStream dataStream)
        {
            entries.Clear();

            ushort count = dataStream.ReadUShort();

            for (int i = 0; i < count; i++)
            {
                DDFString entryName = new DDFString();

                entryName.Deserialize(dataStream);
                DDFType entryType = (DDFType)dataStream.ReadByte();
                DDFBase entry     = DDFFactory.Create(entryType);

                entry.Deserialize(dataStream);

                entries.Add(entryName.Value, entry);
            }
        }