Exemple #1
0
 public void Write(
     MutagenWriter writer,
     ILensFlareGetter item,
     TypedWriteParams?translationParams = null)
 {
     using (HeaderExport.Record(
                writer: writer,
                record: translationParams.ConvertToCustom(RecordTypes.LENS)))
     {
         try
         {
             SkyrimMajorRecordBinaryWriteTranslation.WriteEmbedded(
                 item: item,
                 writer: writer);
             MajorRecordBinaryWriteTranslation.WriteRecordTypes(
                 item: item,
                 writer: writer,
                 translationParams: translationParams);
         }
         catch (Exception ex)
         {
             throw RecordException.Enrich(ex, item);
         }
     }
 }
 public virtual void Write(
     MutagenWriter writer,
     IGameSettingGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     using (HeaderExport.Header(
                writer: writer,
                record: recordTypeConverter.ConvertToCustom(RecordTypes.GMST),
                type: Mutagen.Bethesda.Binary.ObjectType.Record))
     {
         try
         {
             SkyrimMajorRecordBinaryWriteTranslation.WriteEmbedded(
                 item: item,
                 writer: writer);
             MajorRecordBinaryWriteTranslation.WriteRecordTypes(
                 item: item,
                 writer: writer,
                 recordTypeConverter: recordTypeConverter);
         }
         catch (Exception ex)
         {
             throw RecordException.Factory(ex, item.FormKey, item.EditorID);
         }
     }
 }
Exemple #3
0
 public void Write(
     MutagenWriter writer,
     ILensFlareGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     using (HeaderExport.Header(
                writer: writer,
                record: recordTypeConverter.ConvertToCustom(RecordTypes.LENS),
                type: Mutagen.Bethesda.Binary.ObjectType.Record))
     {
         try
         {
             SkyrimMajorRecordBinaryWriteTranslation.WriteEmbedded(
                 item: item,
                 writer: writer);
             MajorRecordBinaryWriteTranslation.WriteRecordTypes(
                 item: item,
                 writer: writer,
                 recordTypeConverter: recordTypeConverter);
         }
         catch (Exception ex)
         {
             throw RecordException.Enrich(ex, item);
         }
     }
 }
Exemple #4
0
 public virtual void Write(
     MutagenWriter writer,
     IAPlacedGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     try
     {
         SkyrimMajorRecordBinaryWriteTranslation.WriteEmbedded(
             item: item,
             writer: writer);
         MajorRecordBinaryWriteTranslation.WriteRecordTypes(
             item: item,
             writer: writer,
             recordTypeConverter: recordTypeConverter);
     }
     catch (Exception ex)
     {
         throw RecordException.Factory(ex, item.FormKey, item.EditorID);
     }
 }