コード例 #1
0
        public void ReadFromFile(BinaryReader reader)
        {
            ConstructHashPool();

            hash      = reader.ReadUInt64(); // I *think* this is to UInt32's molded together.
            version   = reader.ReadInt32();
            numTables = reader.ReadInt32();
            offset    = reader.ReadInt32();

            TableInformation = XBinFactory.ReadXBin(reader, this, hash);
        }
コード例 #2
0
ファイル: XBin.cs プロジェクト: moddingcode/Mafia2Toolkit
        private int unk1; // Unknown.

        public void ReadFromFile(BinaryReader reader)
        {
            hash      = reader.ReadUInt64(); // I *think* this is to UInt32's molded together.
            version   = reader.ReadInt32();
            numTables = reader.ReadInt32();
            offset    = reader.ReadInt32();

            TableInformation = XBinFactory.ReadXBin(reader, hash);

            /*
             * if (numTables > 0)
             * {
             *  for (int i = 0; i < numTables; i++)
             *  {
             *      uint offset = reader.ReadUInt32();
             *  }
             * }
             * else
             * {
             *  unk0 = reader.ReadInt32();
             *  TableInformation = XBinFactory.ReadXBin(reader, hash);
             * }
             */
        }