Esempio n. 1
0
        public virtual int GetHashCode(IImpactDataSetGetter item)
        {
            var hash = new HashCode();

            hash.Add(base.GetHashCode());
            return(hash.ToHashCode());
        }
Esempio n. 2
0
 public void Write(
     MutagenWriter writer,
     IImpactDataSetGetter item,
     TypedWriteParams?translationParams = null)
 {
     using (HeaderExport.Record(
                writer: writer,
                record: translationParams.ConvertToCustom(RecordTypes.IPDS)))
     {
         try
         {
             Fallout4MajorRecordBinaryWriteTranslation.WriteEmbedded(
                 item: item,
                 writer: writer);
             MajorRecordBinaryWriteTranslation.WriteRecordTypes(
                 item: item,
                 writer: writer,
                 translationParams: translationParams);
         }
         catch (Exception ex)
         {
             throw RecordException.Enrich(ex, item);
         }
     }
 }
Esempio n. 3
0
 public void Write(
     MutagenWriter writer,
     IImpactDataSetGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     using (HeaderExport.Header(
                writer: writer,
                record: recordTypeConverter.ConvertToCustom(RecordTypes.IPDS),
                type: 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);
         }
     }
 }
Esempio n. 4
0
 public IEnumerable <IFormLinkGetter> GetContainedFormLinks(IImpactDataSetGetter obj)
 {
     foreach (var item in base.GetContainedFormLinks(obj))
     {
         yield return(item);
     }
     yield break;
 }
Esempio n. 5
0
 public static ImpactDataSet DeepCopy(
     this IImpactDataSetGetter item,
     ImpactDataSet.TranslationMask?copyMask = null)
 {
     return(((ImpactDataSetSetterTranslationCommon)((IImpactDataSetGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
Esempio n. 6
0
 public static bool Equals(
     this IImpactDataSetGetter item,
     IImpactDataSetGetter rhs,
     ImpactDataSet.TranslationMask?equalsMask = null)
 {
     return(((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs,
                crystal: equalsMask?.GetCrystal()));
 }
Esempio n. 7
0
        public ImpactDataSet Duplicate(
            IImpactDataSetGetter item,
            FormKey formKey,
            TranslationCrystal?copyMask)
        {
            var newRec = new ImpactDataSet(formKey);

            newRec.DeepCopyIn(item, default(ErrorMaskBuilder?), copyMask);
            return(newRec);
        }
Esempio n. 8
0
 public static ImpactDataSet Duplicate(
     this IImpactDataSetGetter item,
     FormKey formKey,
     ImpactDataSet.TranslationMask?copyMask = null)
 {
     return(((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
Esempio n. 9
0
 protected static void ToStringFields(
     IImpactDataSetGetter item,
     FileGeneration fg,
     ImpactDataSet.Mask <bool>?printMask = null)
 {
     Fallout4MajorRecordCommon.ToStringFields(
         item: item,
         fg: fg,
         printMask: printMask);
 }
Esempio n. 10
0
 public static string ToString(
     this IImpactDataSetGetter item,
     string?name = null,
     ImpactDataSet.Mask <bool>?printMask = null)
 {
     return(((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).ToString(
                item: item,
                name: name,
                printMask: printMask));
 }
Esempio n. 11
0
 public static ImpactDataSet DeepCopy(
     this IImpactDataSetGetter item,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask = null)
 {
     return(((ImpactDataSetSetterTranslationCommon)((IImpactDataSetGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: errorMask));
 }
Esempio n. 12
0
 public static ImpactDataSet.Mask <bool> GetEqualsMask(
     this IImpactDataSetGetter item,
     IImpactDataSetGetter rhs,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     return(((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).GetEqualsMask(
                item: item,
                rhs: rhs,
                include: include));
 }
Esempio n. 13
0
 public void FillEqualsMask(
     IImpactDataSetGetter item,
     IImpactDataSetGetter rhs,
     ImpactDataSet.Mask <bool> ret,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     if (rhs == null)
     {
         return;
     }
     base.FillEqualsMask(item, rhs, ret, include);
 }
Esempio n. 14
0
 public static void ToString(
     this IImpactDataSetGetter item,
     FileGeneration fg,
     string?name = null,
     ImpactDataSet.Mask <bool>?printMask = null)
 {
     ((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).ToString(
         item: item,
         fg: fg,
         name: name,
         printMask: printMask);
 }
Esempio n. 15
0
 public static void DeepCopyIn(
     this IImpactDataSetInternal lhs,
     IImpactDataSetGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask)
 {
     ((ImpactDataSetSetterTranslationCommon)((IImpactDataSetGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
         item: lhs,
         rhs: rhs,
         errorMask: errorMask,
         copyMask: copyMask,
         deepCopy: false);
 }
Esempio n. 16
0
        public string ToString(
            IImpactDataSetGetter item,
            string?name = null,
            ImpactDataSet.Mask <bool>?printMask = null)
        {
            var fg = new FileGeneration();

            ToString(
                item: item,
                fg: fg,
                name: name,
                printMask: printMask);
            return(fg.ToString());
        }
Esempio n. 17
0
        public ImpactDataSet.Mask <bool> GetEqualsMask(
            IImpactDataSetGetter item,
            IImpactDataSetGetter rhs,
            EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
        {
            var ret = new ImpactDataSet.Mask <bool>(false);

            ((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).FillEqualsMask(
                item: item,
                rhs: rhs,
                ret: ret,
                include: include);
            return(ret);
        }
Esempio n. 18
0
 public void DeepCopyIn(
     IImpactDataSet item,
     IImpactDataSetGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         (IFallout4MajorRecord)item,
         (IFallout4MajorRecordGetter)rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Esempio n. 19
0
 public void DeepCopyIn(
     IImpactDataSetInternal item,
     IImpactDataSetGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         item,
         rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Esempio n. 20
0
        public ImpactDataSet DeepCopy(
            IImpactDataSetGetter item,
            ImpactDataSet.TranslationMask?copyMask = null)
        {
            ImpactDataSet ret = (ImpactDataSet)((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).GetNew();

            ((ImpactDataSetSetterTranslationCommon)((IImpactDataSetGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
Esempio n. 21
0
        public static void DeepCopyIn(
            this IImpactDataSetInternal lhs,
            IImpactDataSetGetter rhs,
            out ImpactDataSet.ErrorMask errorMask,
            ImpactDataSet.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((ImpactDataSetSetterTranslationCommon)((IImpactDataSetGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = ImpactDataSet.ErrorMask.Factory(errorMaskBuilder);
        }
Esempio n. 22
0
        public ImpactDataSet DeepCopy(
            IImpactDataSetGetter item,
            out ImpactDataSet.ErrorMask errorMask,
            ImpactDataSet.TranslationMask?copyMask = null)
        {
            var           errorMaskBuilder = new ErrorMaskBuilder();
            ImpactDataSet ret = (ImpactDataSet)((ImpactDataSetCommon)((IImpactDataSetGetter)item).CommonInstance() !).GetNew();

            ((ImpactDataSetSetterTranslationCommon)((IImpactDataSetGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = ImpactDataSet.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }
Esempio n. 23
0
 public void ToString(
     IImpactDataSetGetter item,
     FileGeneration fg,
     string?name = null,
     ImpactDataSet.Mask <bool>?printMask = null)
 {
     if (name == null)
     {
         fg.AppendLine($"ImpactDataSet =>");
     }
     else
     {
         fg.AppendLine($"{name} (ImpactDataSet) =>");
     }
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         ToStringFields(
             item: item,
             fg: fg,
             printMask: printMask);
     }
     fg.AppendLine("]");
 }