Exemple #1
0
        public virtual int GetHashCode(IANpcSpawnGetter item)
        {
            var hash = new HashCode();

            hash.Add(base.GetHashCode());
            return(hash.ToHashCode());
        }
Exemple #2
0
 public virtual ANpcSpawn Duplicate(
     IANpcSpawnGetter item,
     FormKey formKey,
     TranslationCrystal?copyMask)
 {
     throw new NotImplementedException();
 }
 public IEnumerable <FormKey> GetLinkFormKeys(IANpcSpawnGetter obj)
 {
     foreach (var item in base.GetLinkFormKeys(obj))
     {
         yield return(item);
     }
     yield break;
 }
Exemple #4
0
 public static ANpcSpawn DeepCopy(
     this IANpcSpawnGetter item,
     ANpcSpawn.TranslationMask?copyMask = null)
 {
     return(((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
Exemple #5
0
 public IEnumerable <FormLinkInformation> GetContainedFormLinks(IANpcSpawnGetter obj)
 {
     foreach (var item in base.GetContainedFormLinks(obj))
     {
         yield return(item);
     }
     yield break;
 }
Exemple #6
0
 public static bool Equals(
     this IANpcSpawnGetter item,
     IANpcSpawnGetter rhs)
 {
     return(((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs));
 }
Exemple #7
0
 public override void Write(
     MutagenWriter writer,
     IANpcSpawnGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     Write(
         item: (IANpcGetter)item,
         writer: writer,
         recordTypeConverter: recordTypeConverter);
 }
Exemple #8
0
 public static ANpcSpawn Duplicate(
     this IANpcSpawnGetter item,
     FormKey formKey,
     ANpcSpawn.TranslationMask?copyMask = null)
 {
     return(((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
Exemple #9
0
 public static string ToString(
     this IANpcSpawnGetter item,
     string?name = null,
     ANpcSpawn.Mask <bool>?printMask = null)
 {
     return(((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).ToString(
                item: item,
                name: name,
                printMask: printMask));
 }
Exemple #10
0
 public static ANpcSpawn.Mask <bool> GetEqualsMask(
     this IANpcSpawnGetter item,
     IANpcSpawnGetter rhs,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     return(((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).GetEqualsMask(
                item: item,
                rhs: rhs,
                include: include));
 }
Exemple #11
0
 protected static void ToStringFields(
     IANpcSpawnGetter item,
     FileGeneration fg,
     ANpcSpawn.Mask <bool>?printMask = null)
 {
     OblivionMajorRecordCommon.ToStringFields(
         item: item,
         fg: fg,
         printMask: printMask);
 }
Exemple #12
0
 public override ANpcSpawn Duplicate(
     IANpcSpawnGetter item,
     FormKey formKey,
     TranslationCrystal?copyMask)
 {
     return(this.Duplicate(
                item: (IANpc)item,
                formKey: formKey,
                copyMask: copyMask));
 }
Exemple #13
0
 public static ANpcSpawn DeepCopy(
     this IANpcSpawnGetter item,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask = null)
 {
     return(((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: errorMask));
 }
Exemple #14
0
 public void FillEqualsMask(
     IANpcSpawnGetter item,
     IANpcSpawnGetter rhs,
     ANpcSpawn.Mask <bool> ret,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     if (rhs == null)
     {
         return;
     }
     base.FillEqualsMask(item, rhs, ret, include);
 }
Exemple #15
0
 public static void ToString(
     this IANpcSpawnGetter item,
     FileGeneration fg,
     string?name = null,
     ANpcSpawn.Mask <bool>?printMask = null)
 {
     ((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).ToString(
         item: item,
         fg: fg,
         name: name,
         printMask: printMask);
 }
Exemple #16
0
 public static void DeepCopyIn(
     this IANpcSpawnInternal lhs,
     IANpcSpawnGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask)
 {
     ((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
         item: lhs,
         rhs: rhs,
         errorMask: errorMask,
         copyMask: copyMask,
         deepCopy: false);
 }
Exemple #17
0
        public ANpcSpawn DeepCopy(
            IANpcSpawnGetter item,
            ANpcSpawn.TranslationMask?copyMask = null)
        {
            ANpcSpawn ret = (ANpcSpawn)((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).GetNew();

            ((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
Exemple #18
0
 public virtual void DeepCopyIn(
     IANpcSpawn item,
     IANpcSpawnGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         (IOblivionMajorRecord)item,
         (IOblivionMajorRecordGetter)rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Exemple #19
0
 public virtual void DeepCopyIn(
     IANpcSpawnInternal item,
     IANpcSpawnGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         item,
         rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Exemple #20
0
 public override void DeepCopyIn(
     IANpcSpawn item,
     IANpcSpawnGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     this.DeepCopyIn(
         item: (IANpc)item,
         rhs: (IANpcGetter)rhs,
         errorMask: errorMask,
         copyMask: copyMask,
         deepCopy: deepCopy);
 }
Exemple #21
0
        public string ToString(
            IANpcSpawnGetter item,
            string?name = null,
            ANpcSpawn.Mask <bool>?printMask = null)
        {
            var fg = new FileGeneration();

            ToString(
                item: item,
                fg: fg,
                name: name,
                printMask: printMask);
            return(fg.ToString());
        }
Exemple #22
0
        public ANpcSpawn.Mask <bool> GetEqualsMask(
            IANpcSpawnGetter item,
            IANpcSpawnGetter rhs,
            EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
        {
            var ret = new ANpcSpawn.Mask <bool>(false);

            ((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).FillEqualsMask(
                item: item,
                rhs: rhs,
                ret: ret,
                include: include);
            return(ret);
        }
Exemple #23
0
        public ANpcSpawn DeepCopy(
            IANpcSpawnGetter item,
            ErrorMaskBuilder?errorMask,
            TranslationCrystal?copyMask = null)
        {
            ANpcSpawn ret = (ANpcSpawn)((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).GetNew();

            ((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: errorMask,
                copyMask: copyMask,
                deepCopy: true);
            return(ret);
        }
Exemple #24
0
        public static void DeepCopyIn(
            this IANpcSpawnInternal lhs,
            IANpcSpawnGetter rhs,
            out ANpcSpawn.ErrorMask errorMask,
            ANpcSpawn.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = ANpcSpawn.ErrorMask.Factory(errorMaskBuilder);
        }
Exemple #25
0
        public ANpcSpawn DeepCopy(
            IANpcSpawnGetter item,
            out ANpcSpawn.ErrorMask errorMask,
            ANpcSpawn.TranslationMask?copyMask = null)
        {
            var       errorMaskBuilder = new ErrorMaskBuilder();
            ANpcSpawn ret = (ANpcSpawn)((ANpcSpawnCommon)((IANpcSpawnGetter)item).CommonInstance() !).GetNew();

            ((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = ANpcSpawn.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }
Exemple #26
0
 public virtual void Write(
     MutagenWriter writer,
     IANpcSpawnGetter item,
     RecordTypeConverter?recordTypeConverter = null)
 {
     try
     {
         OblivionMajorRecordBinaryWriteTranslation.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 #27
0
 public void ToString(
     IANpcSpawnGetter item,
     FileGeneration fg,
     string?name = null,
     ANpcSpawn.Mask <bool>?printMask = null)
 {
     if (name == null)
     {
         fg.AppendLine($"ANpcSpawn =>");
     }
     else
     {
         fg.AppendLine($"{name} (ANpcSpawn) =>");
     }
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         ToStringFields(
             item: item,
             fg: fg,
             printMask: printMask);
     }
     fg.AppendLine("]");
 }
Exemple #28
0
 public override int GetHashCode(IANpcSpawnGetter item)
 {
     return(GetHashCode(item: (IANpcGetter)item));
 }
Exemple #29
0
 public void RemapLinks(IANpcSpawnGetter obj, IReadOnlyDictionary <FormKey, FormKey> mapping) => throw new NotImplementedException();