Exemplo n.º 1
0
        public void Read(ErpBinaryReader reader)
        {
            reader.ReadBytes(4); // entry info length
            this.Identifier   = reader.ReadString(reader.ReadInt16());
            this.ResourceType = reader.ReadString(16);

            this.Unknown = reader.ReadInt32();

            byte numResources = reader.ReadByte();

            while (numResources-- > 0)
            {
                ErpFragment res = new ErpFragment(this.ParentFile);
                res.Read(reader);
                this.Fragments.Add(res);
            }

            if (this.ParentFile.Version > 2)
            {
                this.Hash = reader.ReadBytes(16);
            }
        }