Example #1
0
 private ParseResult CustomRecordFallback(
     OverlayStream stream,
     int finalPos,
     int offset,
     RecordType type,
     PreviousParse lastParsed,
     TypedParseParams?parseParams = null)
 {
     if (type.TypeInt == 0x44494445) // EDID
     {
         return(base.FillRecordType(
                    stream: stream,
                    finalPos: finalPos,
                    offset: offset,
                    type: type,
                    recordParseCount: null,
                    lastParsed: lastParsed,
                    parseParams: parseParams));
     }
     WeatherBinaryCreateTranslation.FillCloudTexture(
         new MutagenFrame(new MutagenInterfaceReadStream(stream, _package.MetaData)),
         type,
         _cloudTextures);
     return(default(int?));
 }
Example #2
0
 public partial ParseResult DisabledCloudLayersCustomParse(OverlayStream stream, int offset)
 {
     WeatherBinaryCreateTranslation.FillBinaryDisabledCloudLayers(
         new MutagenFrame(new MutagenInterfaceReadStream(stream, _package.MetaData)),
         _clouds);
     return(null);
 }
Example #3
0
 IWeatherAmbientColorSetGetter?GetDirectionalAmbientLightingColorsCustom()
 {
     if (!_directionalLoc.HasValue)
     {
         return(null);
     }
     return(WeatherBinaryCreateTranslation.GetBinaryDirectionalAmbientLightingColors(
                new MutagenFrame(new MutagenMemoryReadStream(_data.Slice(_directionalLoc.Value), _package.MetaData))));
 }
Example #4
0
 public static ParseResult CustomRecordFallback(
     IWeatherInternal item,
     MutagenFrame frame,
     Dictionary <RecordType, int>?recordParseCount,
     RecordType nextRecordType,
     int contentLength,
     RecordTypeConverter?recordTypeConverter = null)
 {
     if (nextRecordType.TypeInt == 0x44494445) // EDID
     {
         return(SkyrimMajorRecordBinaryCreateTranslation.FillBinaryRecordTypes(
                    item: item,
                    frame: frame,
                    recordParseCount: recordParseCount,
                    nextRecordType: nextRecordType,
                    contentLength: contentLength,
                    recordTypeConverter: recordTypeConverter));
     }
     WeatherBinaryCreateTranslation.FillCloudTexture(frame, nextRecordType, item.CloudTextures);
     return(default(int?));
 }
Example #5
0
 partial void CloudsCustomParse(OverlayStream stream, long finalPos, int offset, RecordType type, PreviousParse lastParsed)
 {
     WeatherBinaryCreateTranslation.FillBinaryCloudYSpeeds(
         new MutagenFrame(new MutagenInterfaceReadStream(stream, _package.MetaData)),
         _clouds);
 }
Example #6
0
 partial void CloudColorsCustomParse(OverlayStream stream, int offset)
 {
     WeatherBinaryCreateTranslation.FillBinaryCloudColors(
         new MutagenFrame(new MutagenInterfaceReadStream(stream, _package.MetaData)),
         _clouds);
 }