Example #1
0
        public void LoadFileStructure(TigerBinaryReader reader)
        {
            TigerFile = reader.ReadTigerFile();

            for (var i = 0; i < TigerFile.NumberOfFiles; i++)
            {
                TigerFile.TigerEntries.Add(reader.ReadTigerEntry());
            }
        }
Example #2
0
 public void Write(TigerFile file)
 {
     Write(file.Signature);
     Write(file.Patch);
     Write(file.FileVersion);
     Write(file.NumberOfFiles);
     Write(file.Unknown1);
     Write(file.Unknown2);
     Write(file.Platform);
 }
Example #3
0
        public TigerFile ReadTigerFile()
        {
            var file = new TigerFile();

            file.Signature     = ReadBytes(4);
            file.Patch         = ReadUInt32();
            file.FileVersion   = ReadUInt32();
            file.NumberOfFiles = ReadUInt32();
            file.Unknown1      = ReadUInt32();
            file.Unknown2      = ReadUInt32();
            file.Platform      = ReadBytes(32);

            return(file);
        }