示例#1
0
        public virtual int GetHashCode(IAPlacedGetter item)
        {
            var hash = new HashCode();

            hash.Add(base.GetHashCode());
            return(hash.ToHashCode());
        }
示例#2
0
 public static APlaced DeepCopy(
     this IAPlacedGetter item,
     APlaced.TranslationMask?copyMask = null)
 {
     return(((APlacedSetterTranslationCommon)((IAPlacedGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
示例#3
0
 public IEnumerable <FormLinkInformation> GetContainedFormLinks(IAPlacedGetter obj)
 {
     foreach (var item in base.GetContainedFormLinks(obj))
     {
         yield return(item);
     }
     yield break;
 }
示例#4
0
 public static bool Equals(
     this IAPlacedGetter item,
     IAPlacedGetter rhs)
 {
     return(((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs));
 }
示例#5
0
 public IEnumerable <FormKey> GetLinkFormKeys(IAPlacedGetter obj)
 {
     foreach (var item in base.GetLinkFormKeys(obj))
     {
         yield return(item);
     }
     yield break;
 }
示例#6
0
        public virtual APlaced Duplicate(
            IAPlacedGetter item,
            FormKey formKey,
            TranslationCrystal?copyMask)
        {
            var newRec = new APlaced(formKey, default(Fallout4Release));

            newRec.DeepCopyIn(item, default(ErrorMaskBuilder?), copyMask);
            return(newRec);
        }
示例#7
0
 protected static void ToStringFields(
     IAPlacedGetter item,
     FileGeneration fg,
     APlaced.Mask <bool>?printMask = null)
 {
     Fallout4MajorRecordCommon.ToStringFields(
         item: item,
         fg: fg,
         printMask: printMask);
 }
示例#8
0
 public static APlaced DeepCopy(
     this IAPlacedGetter item,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask = null)
 {
     return(((APlacedSetterTranslationCommon)((IAPlacedGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: errorMask));
 }
示例#9
0
 public static APlaced.Mask <bool> GetEqualsMask(
     this IAPlacedGetter item,
     IAPlacedGetter rhs,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     return(((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).GetEqualsMask(
                item: item,
                rhs: rhs,
                include: include));
 }
示例#10
0
 public static APlaced Duplicate(
     this IAPlacedGetter item,
     FormKey formKey,
     APlaced.TranslationMask?copyMask = null)
 {
     return(((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
示例#11
0
 public static string ToString(
     this IAPlacedGetter item,
     string?name = null,
     APlaced.Mask <bool>?printMask = null)
 {
     return(((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).ToString(
                item: item,
                name: name,
                printMask: printMask));
 }
示例#12
0
 public void FillEqualsMask(
     IAPlacedGetter item,
     IAPlacedGetter rhs,
     APlaced.Mask <bool> ret,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     if (rhs == null)
     {
         return;
     }
     base.FillEqualsMask(item, rhs, ret, include);
 }
示例#13
0
 public static void ToString(
     this IAPlacedGetter item,
     FileGeneration fg,
     string?name = null,
     APlaced.Mask <bool>?printMask = null)
 {
     ((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).ToString(
         item: item,
         fg: fg,
         name: name,
         printMask: printMask);
 }
示例#14
0
 public static void DeepCopyIn(
     this IAPlacedInternal lhs,
     IAPlacedGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask)
 {
     ((APlacedSetterTranslationCommon)((IAPlacedGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
         item: lhs,
         rhs: rhs,
         errorMask: errorMask,
         copyMask: copyMask,
         deepCopy: false);
 }
示例#15
0
 public virtual void DeepCopyIn(
     IAPlacedInternal item,
     IAPlacedGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         item,
         rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
示例#16
0
        public APlaced DeepCopy(
            IAPlacedGetter item,
            APlaced.TranslationMask?copyMask = null)
        {
            APlaced ret = (APlaced)((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).GetNew();

            ((APlacedSetterTranslationCommon)((IAPlacedGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
示例#17
0
        public string ToString(
            IAPlacedGetter item,
            string?name = null,
            APlaced.Mask <bool>?printMask = null)
        {
            var fg = new FileGeneration();

            ToString(
                item: item,
                fg: fg,
                name: name,
                printMask: printMask);
            return(fg.ToString());
        }
示例#18
0
        public APlaced.Mask <bool> GetEqualsMask(
            IAPlacedGetter item,
            IAPlacedGetter rhs,
            EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
        {
            var ret = new APlaced.Mask <bool>(false);

            ((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).FillEqualsMask(
                item: item,
                rhs: rhs,
                ret: ret,
                include: include);
            return(ret);
        }
示例#19
0
 public virtual void DeepCopyIn(
     IAPlaced item,
     IAPlacedGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         (IFallout4MajorRecord)item,
         (IFallout4MajorRecordGetter)rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
示例#20
0
        public APlaced DeepCopy(
            IAPlacedGetter item,
            ErrorMaskBuilder?errorMask,
            TranslationCrystal?copyMask = null)
        {
            APlaced ret = (APlaced)((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).GetNew();

            ((APlacedSetterTranslationCommon)((IAPlacedGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: errorMask,
                copyMask: copyMask,
                deepCopy: true);
            return(ret);
        }
示例#21
0
        public static void DeepCopyIn(
            this IAPlacedInternal lhs,
            IAPlacedGetter rhs,
            out APlaced.ErrorMask errorMask,
            APlaced.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((APlacedSetterTranslationCommon)((IAPlacedGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = APlaced.ErrorMask.Factory(errorMaskBuilder);
        }
示例#22
0
        public APlaced DeepCopy(
            IAPlacedGetter item,
            out APlaced.ErrorMask errorMask,
            APlaced.TranslationMask?copyMask = null)
        {
            var     errorMaskBuilder = new ErrorMaskBuilder();
            APlaced ret = (APlaced)((APlacedCommon)((IAPlacedGetter)item).CommonInstance() !).GetNew();

            ((APlacedSetterTranslationCommon)((IAPlacedGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = APlaced.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }
示例#23
0
 public virtual void Write(
     MutagenWriter writer,
     IAPlacedGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     try
     {
         Fallout4MajorRecordBinaryWriteTranslation.WriteEmbedded(
             item: item,
             writer: writer);
         MajorRecordBinaryWriteTranslation.WriteRecordTypes(
             item: item,
             writer: writer,
             recordTypeConverter: recordTypeConverter);
     }
     catch (Exception ex)
     {
         throw RecordException.Factory(ex, item.FormKey, item.EditorID);
     }
 }
示例#24
0
 public void ToString(
     IAPlacedGetter item,
     FileGeneration fg,
     string?name = null,
     APlaced.Mask <bool>?printMask = null)
 {
     if (name == null)
     {
         fg.AppendLine($"APlaced =>");
     }
     else
     {
         fg.AppendLine($"{name} (APlaced) =>");
     }
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         ToStringFields(
             item: item,
             fg: fg,
             printMask: printMask);
     }
     fg.AppendLine("]");
 }
示例#25
0
 public void RemapLinks(IAPlacedGetter obj, IReadOnlyDictionary <FormKey, FormKey> mapping) => throw new NotImplementedException();