public ReversedTagInfo()
 {
     Offset   = TRB._f.ReadUInt32();
     FullName = ReadHelper.ReadStringFromOffset(TRB.sections[0].SectionOffset + TRB._f.ReadUInt32());
     Hash     = TRB._f.ReadInt32();
     Name     = new string(TRB._f.ReadChars(4));
 }
예제 #2
0
        public PTEX() : base()
        {
            TRB._f.BaseStream.Seek(56, SeekOrigin.Current);
            Width     = TRB._f.ReadUInt32();
            Height    = TRB._f.ReadUInt32();
            Unknown   = TRB._f.ReadInt32();
            DDSOffset = TRB._f.ReadUInt32();
            DDSSize   = TRB._f.ReadUInt32();


            RawImage = ReadHelper.ReadFromOffset(DDSSize, DDSOffset + TRB.sections.Where(x => x.TextOffset == "texmem").ToArray()[0].SectionOffset);
            DDSImage img = new DDSImage(RawImage);

            Image = img.BitmapImage;
        }