Пример #1
0
 public void Write(
     MutagenWriter writer,
     IExplosionGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     using (HeaderExport.Header(
                writer: writer,
                record: recordTypeConverter.ConvertToCustom(RecordTypes.EXPL),
                type: Mutagen.Bethesda.Binary.ObjectType.Record))
     {
         try
         {
             Fallout4MajorRecordBinaryWriteTranslation.WriteEmbedded(
                 item: item,
                 writer: writer);
             MajorRecordBinaryWriteTranslation.WriteRecordTypes(
                 item: item,
                 writer: writer,
                 recordTypeConverter: recordTypeConverter);
         }
         catch (Exception ex)
         {
             throw RecordException.Enrich(ex, item);
         }
     }
 }
 public void Write(
     MutagenWriter writer,
     IExplosionGetter item,
     TypedWriteParams?translationParams = null)
 {
     using (HeaderExport.Record(
                writer: writer,
                record: translationParams.ConvertToCustom(RecordTypes.EXPL)))
     {
         try
         {
             Fallout4MajorRecordBinaryWriteTranslation.WriteEmbedded(
                 item: item,
                 writer: writer);
             MajorRecordBinaryWriteTranslation.WriteRecordTypes(
                 item: item,
                 writer: writer,
                 translationParams: translationParams);
         }
         catch (Exception ex)
         {
             throw RecordException.Enrich(ex, item);
         }
     }
 }
Пример #3
0
 public static Explosion DeepCopy(
     this IExplosionGetter item,
     Explosion.TranslationMask?copyMask = null)
 {
     return(((ExplosionSetterTranslationCommon)((IExplosionGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
Пример #4
0
 public static bool Equals(
     this IExplosionGetter item,
     IExplosionGetter rhs,
     Explosion.TranslationMask?equalsMask = null)
 {
     return(((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs,
                crystal: equalsMask?.GetCrystal()));
 }
Пример #5
0
 public static Explosion Duplicate(
     this IExplosionGetter item,
     FormKey formKey,
     Explosion.TranslationMask?copyMask = null)
 {
     return(((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
Пример #6
0
 public static string ToString(
     this IExplosionGetter item,
     string?name = null,
     Explosion.Mask <bool>?printMask = null)
 {
     return(((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).ToString(
                item: item,
                name: name,
                printMask: printMask));
 }
Пример #7
0
 public static Explosion DeepCopy(
     this IExplosionGetter item,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask = null)
 {
     return(((ExplosionSetterTranslationCommon)((IExplosionGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: errorMask));
 }
Пример #8
0
        public Explosion Duplicate(
            IExplosionGetter item,
            FormKey formKey,
            TranslationCrystal?copyMask)
        {
            var newRec = new Explosion(formKey);

            newRec.DeepCopyIn(item, default(ErrorMaskBuilder?), copyMask);
            return(newRec);
        }
Пример #9
0
 public static Explosion.Mask <bool> GetEqualsMask(
     this IExplosionGetter item,
     IExplosionGetter rhs,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     return(((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).GetEqualsMask(
                item: item,
                rhs: rhs,
                include: include));
 }
Пример #10
0
 public void FillEqualsMask(
     IExplosionGetter item,
     IExplosionGetter rhs,
     Explosion.Mask <bool> ret,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     if (rhs == null)
     {
         return;
     }
     base.FillEqualsMask(item, rhs, ret, include);
 }
Пример #11
0
 public static void ToString(
     this IExplosionGetter item,
     FileGeneration fg,
     string?name = null,
     Explosion.Mask <bool>?printMask = null)
 {
     ((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).ToString(
         item: item,
         fg: fg,
         name: name,
         printMask: printMask);
 }
Пример #12
0
 public static void DeepCopyIn(
     this IExplosionInternal lhs,
     IExplosionGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask)
 {
     ((ExplosionSetterTranslationCommon)((IExplosionGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
         item: lhs,
         rhs: rhs,
         errorMask: errorMask,
         copyMask: copyMask,
         deepCopy: false);
 }
Пример #13
0
        public string ToString(
            IExplosionGetter item,
            string?name = null,
            Explosion.Mask <bool>?printMask = null)
        {
            var fg = new FileGeneration();

            ToString(
                item: item,
                fg: fg,
                name: name,
                printMask: printMask);
            return(fg.ToString());
        }
Пример #14
0
        public Explosion.Mask <bool> GetEqualsMask(
            IExplosionGetter item,
            IExplosionGetter rhs,
            EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
        {
            var ret = new Explosion.Mask <bool>(false);

            ((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).FillEqualsMask(
                item: item,
                rhs: rhs,
                ret: ret,
                include: include);
            return(ret);
        }
Пример #15
0
 public void DeepCopyIn(
     IExplosionInternal item,
     IExplosionGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         item,
         rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Пример #16
0
 public void DeepCopyIn(
     IExplosion item,
     IExplosionGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         (IFallout4MajorRecord)item,
         (IFallout4MajorRecordGetter)rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Пример #17
0
        public Explosion DeepCopy(
            IExplosionGetter item,
            Explosion.TranslationMask?copyMask = null)
        {
            Explosion ret = (Explosion)((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).GetNew();

            ((ExplosionSetterTranslationCommon)((IExplosionGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
Пример #18
0
        public static void DeepCopyIn(
            this IExplosionInternal lhs,
            IExplosionGetter rhs,
            out Explosion.ErrorMask errorMask,
            Explosion.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((ExplosionSetterTranslationCommon)((IExplosionGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = Explosion.ErrorMask.Factory(errorMaskBuilder);
        }
Пример #19
0
        public Explosion DeepCopy(
            IExplosionGetter item,
            out Explosion.ErrorMask errorMask,
            Explosion.TranslationMask?copyMask = null)
        {
            var       errorMaskBuilder = new ErrorMaskBuilder();
            Explosion ret = (Explosion)((ExplosionCommon)((IExplosionGetter)item).CommonInstance() !).GetNew();

            ((ExplosionSetterTranslationCommon)((IExplosionGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = Explosion.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }
Пример #20
0
 public void ToString(
     IExplosionGetter item,
     FileGeneration fg,
     string?name = null,
     Explosion.Mask <bool>?printMask = null)
 {
     if (name == null)
     {
         fg.AppendLine($"Explosion =>");
     }
     else
     {
         fg.AppendLine($"{name} (Explosion) =>");
     }
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         ToStringFields(
             item: item,
             fg: fg,
             printMask: printMask);
     }
     fg.AppendLine("]");
 }