private bool LoadFile( Stream stream )
        {
            string magic = stream.ReadAscii( 8 );
            uint entryCount = stream.ReadUInt32().SwapEndian();
            uint refStringStart = stream.ReadUInt32().SwapEndian();

            BattleBookEntryList = new List<BattleBookEntry>( (int)entryCount );
            for ( uint i = 0; i < entryCount; ++i ) {
                BattleBookEntry e = new BattleBookEntry( stream );
                BattleBookEntryList.Add( e );
            }

            return true;
        }
Exemple #2
0
        private bool LoadFile(Stream stream)
        {
            string magic          = stream.ReadAscii(8);
            uint   entryCount     = stream.ReadUInt32().SwapEndian();
            uint   refStringStart = stream.ReadUInt32().SwapEndian();

            BattleBookEntryList = new List <BattleBookEntry>((int)entryCount);
            for (uint i = 0; i < entryCount; ++i)
            {
                BattleBookEntry e = new BattleBookEntry(stream);
                BattleBookEntryList.Add(e);
            }

            return(true);
        }
Exemple #3
0
        private bool LoadFile(Stream stream, EndianUtils.Endianness endian)
        {
            string magic      = stream.ReadAscii(8);
            uint   unknown1   = stream.ReadUInt32().FromEndian(endian);
            uint   entryCount = stream.ReadUInt32().FromEndian(endian);
            uint   unknown2   = stream.ReadUInt32().FromEndian(endian);

            stream.DiscardBytes(12);

            BattleBookEntryList = new List <BattleBookEntry>((int)entryCount);
            for (uint i = 0; i < entryCount; ++i)
            {
                BattleBookEntry e = new BattleBookEntry(stream, endian);
                BattleBookEntryList.Add(e);
            }

            return(true);
        }