public CharacterModelDefinition( System.IO.Stream stream, uint refStringStart )
        {
            Strings = new string[100];

            for ( uint i = 0; i < 100; ++i ) {
                Strings[i] = stream.ReadAsciiNulltermFromLocationAndReset( stream.ReadUInt32().SwapEndian() + refStringStart );
            }

            CustomIndex = stream.ReadUInt32().SwapEndian();
            CustomCount = (byte)stream.ReadByte();
            OtherCount = (byte)stream.ReadByte();
            Unknown0x20AreaCount = (byte)stream.ReadByte();
            Unknown1d = (byte)stream.ReadByte();
            OtherIndex = stream.ReadUInt32().SwapEndian();
            Unknown0x20AreaIndex = stream.ReadUInt32().SwapEndian();
            Unknown4a = (byte)stream.ReadByte();
            Unknown4b = (byte)stream.ReadByte();
            Unknown4c = (byte)stream.ReadByte();
            Unknown4d = (byte)stream.ReadByte();
            stream.DiscardBytes( 4 );
            Unknown0x80AreaIndex = stream.ReadUInt32().SwapEndian();
            Unknown0x80AreaCount = (byte)stream.ReadByte();
            Unknown7b = (byte)stream.ReadByte();
            stream.DiscardBytes( 2 );

            stream.DiscardBytes( 80 );
        }
        public Unknown0x80byteArea( System.IO.Stream stream, uint refStringStart )
        {
            UnknownUInt = stream.ReadUInt32().SwapEndian();
            stream.DiscardBytes( 4 );
            UnknownByte1 = (byte)stream.ReadByte();
            UnknownByte2 = (byte)stream.ReadByte();
            stream.DiscardBytes( 2 );
            UnknownFloat1 = stream.ReadUInt32().SwapEndian().UIntToFloat();
            UnknownFloat2 = stream.ReadUInt32().SwapEndian().UIntToFloat();

            stream.DiscardBytes( 0x6C );
        }
 public OtherModelAddition( System.IO.Stream stream, uint refStringStart )
 {
     Str = stream.ReadAsciiNulltermFromLocationAndReset( stream.ReadUInt32().SwapEndian() + refStringStart );
     Unknown1 = (byte)stream.ReadByte();
     Unknown2 = (byte)stream.ReadByte();
     stream.DiscardBytes( 0x1A );
 }
Exemplo n.º 4
0
 public BattleBookEntry( System.IO.Stream stream )
 {
     UnlockReferenceMaybe = stream.ReadUInt32().SwapEndian();
     NameStringDicId = stream.ReadUInt32().SwapEndian();
     TextStringDicId = stream.ReadUInt32().SwapEndian();
     stream.DiscardBytes( 0x4 );
 }
Exemplo n.º 5
0
 public DATA( System.IO.Stream stream )
     : base(stream)
 {
     // probably a generic binary blob, though I don't quite understand the format
     // just skip it if we encountered it
     stream.ReadAlign( 0x10 );
     stream.DiscardBytes( SectionSize );
 }
 public Unknown0x20byteAreaB( System.IO.Stream stream, uint refStringStart )
 {
     UnknownFloats = new float[4];
     for ( int i = 0; i < UnknownFloats.Length; ++i ) {
         UnknownFloats[i] = stream.ReadUInt32().SwapEndian().UIntToFloat();
     }
     UnknownByte = (byte)stream.ReadByte();
     stream.DiscardBytes( 0x0F );
 }
Exemplo n.º 7
0
        public Title( System.IO.Stream stream )
        {
            ID = stream.ReadUInt32().SwapEndian();
            NameStringDicID = stream.ReadUInt32().SwapEndian();
            DescStringDicID = stream.ReadUInt32().SwapEndian();
            Character = stream.ReadUInt32().SwapEndian();

            CostumeString = stream.ReadAscii( 0x10 ).TrimNull();

            BunnyGuildPointsMaybe = stream.ReadUInt32().SwapEndian();
            stream.DiscardBytes( 0xC );
        }
Exemplo n.º 8
0
        public SynopsisEntry( System.IO.Stream stream )
        {
            ID = stream.ReadUInt32().SwapEndian();
            StoryIdMin = stream.ReadUInt32().SwapEndian();
            StoryIdMax = stream.ReadUInt32().SwapEndian();
            NameStringDicId = stream.ReadUInt32().SwapEndian();
            TextStringDicId = stream.ReadUInt32().SwapEndian();
            stream.DiscardBytes( 0xC );

            long pos = stream.Position;
            RefString1 = stream.ReadAsciiNullterm();
            stream.Position = pos + 0x10;
            RefString2 = stream.ReadAsciiNullterm();
            stream.Position = pos + 0x20;
        }
Exemplo n.º 9
0
        public CFLD( System.IO.Stream stream )
            : base(stream)
        {
            if ( SectionIdentifierHumanReadable != "CFLD" ) {
                throw new System.Exception( "Attempted to parse a 'CFLD' section with data from a '" + SectionIdentifierHumanReadable + "' section." );
            }

            Subsections = new List<IFileSection>();

            long PositionAtBeginning = stream.Position;
            stream.ReadAlign( 0x10 );
            while ( stream.Position < PositionAtBeginning + _SectionSize ) {
                if ( stream.PeekUInt32() == 0x00000000 ) {
                    stream.DiscardBytes( 0x10 );
                    continue;
                }
                IFileSection s = FileSectionFactory.ParseNextSection( stream );
                Subsections.Add( s );
                stream.ReadAlign( 0x10 );
            }
            stream.ReadAlign( 0x10 );
        }