示例#1
0
 public virtual ANpc Duplicate(
     IANpcGetter item,
     FormKey formKey,
     TranslationCrystal?copyMask)
 {
     throw new NotImplementedException();
 }
示例#2
0
        public virtual int GetHashCode(IANpcGetter item)
        {
            var hash = new HashCode();

            hash.Add(base.GetHashCode());
            return(hash.ToHashCode());
        }
示例#3
0
 public IEnumerable <FormLinkInformation> GetContainedFormLinks(IANpcGetter obj)
 {
     foreach (var item in base.GetContainedFormLinks(obj))
     {
         yield return(item);
     }
     yield break;
 }
示例#4
0
 public IEnumerable <FormKey> GetLinkFormKeys(IANpcGetter obj)
 {
     foreach (var item in base.GetLinkFormKeys(obj))
     {
         yield return(item);
     }
     yield break;
 }
示例#5
0
 public static bool Equals(
     this IANpcGetter item,
     IANpcGetter rhs)
 {
     return(((ANpcCommon)((IANpcGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs));
 }
示例#6
0
 public static ANpc DeepCopy(
     this IANpcGetter item,
     ANpc.TranslationMask?copyMask = null)
 {
     return(((ANpcSetterTranslationCommon)((IANpcGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
示例#7
0
 public static ANpc DeepCopy(
     this IANpcGetter item,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask = null)
 {
     return(((ANpcSetterTranslationCommon)((IANpcGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: errorMask));
 }
示例#8
0
 public static string ToString(
     this IANpcGetter item,
     string?name = null,
     ANpc.Mask <bool>?printMask = null)
 {
     return(((ANpcCommon)((IANpcGetter)item).CommonInstance() !).ToString(
                item: item,
                name: name,
                printMask: printMask));
 }
示例#9
0
 public static ANpc.Mask <bool> GetEqualsMask(
     this IANpcGetter item,
     IANpcGetter rhs,
     EqualsMaskHelper.Include include = EqualsMaskHelper.Include.All)
 {
     return(((ANpcCommon)((IANpcGetter)item).CommonInstance() !).GetEqualsMask(
                item: item,
                rhs: rhs,
                include: include));
 }
示例#10
0
 public static ANpc Duplicate(
     this IANpcGetter item,
     FormKey formKey,
     ANpc.TranslationMask?copyMask = null)
 {
     return(((ANpcCommon)((IANpcGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
示例#11
0
 protected static void ToStringFields(
     IANpcGetter item,
     FileGeneration fg,
     ANpc.Mask <bool>?printMask = null)
 {
     ANpcSpawnCommon.ToStringFields(
         item: item,
         fg: fg,
         printMask: printMask);
 }
示例#12
0
 public void FillEqualsMask(
     IANpcGetter item,
     IANpcGetter rhs,
     ANpc.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 IANpcGetter item,
     FileGeneration fg,
     string?name = null,
     ANpc.Mask <bool>?printMask = null)
 {
     ((ANpcCommon)((IANpcGetter)item).CommonInstance() !).ToString(
         item: item,
         fg: fg,
         name: name,
         printMask: printMask);
 }
示例#14
0
 public static void DeepCopyIn(
     this IANpcInternal lhs,
     IANpcGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask)
 {
     ((ANpcSetterTranslationCommon)((IANpcGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
         item: lhs,
         rhs: rhs,
         errorMask: errorMask,
         copyMask: copyMask,
         deepCopy: false);
 }
示例#15
0
 public virtual void DeepCopyIn(
     IANpc item,
     IANpcGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         (IANpcSpawn)item,
         (IANpcSpawnGetter)rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
示例#16
0
        public ANpc DeepCopy(
            IANpcGetter item,
            ANpc.TranslationMask?copyMask = null)
        {
            ANpc ret = (ANpc)((ANpcCommon)((IANpcGetter)item).CommonInstance() !).GetNew();

            ((ANpcSetterTranslationCommon)((IANpcGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
示例#17
0
 public virtual void DeepCopyIn(
     IANpcInternal item,
     IANpcGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         item,
         rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
示例#18
0
        public string ToString(
            IANpcGetter item,
            string?name = null,
            ANpc.Mask <bool>?printMask = null)
        {
            var fg = new FileGeneration();

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

            ((ANpcCommon)((IANpcGetter)item).CommonInstance() !).FillEqualsMask(
                item: item,
                rhs: rhs,
                ret: ret,
                include: include);
            return(ret);
        }
示例#20
0
        public ANpc DeepCopy(
            IANpcGetter item,
            ErrorMaskBuilder?errorMask,
            TranslationCrystal?copyMask = null)
        {
            ANpc ret = (ANpc)((ANpcCommon)((IANpcGetter)item).CommonInstance() !).GetNew();

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

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

            ((ANpcSetterTranslationCommon)((IANpcGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = ANpc.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }
示例#23
0
 public virtual void Write(
     MutagenWriter writer,
     IANpcGetter 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);
     }
 }
示例#24
0
 public void ToString(
     IANpcGetter item,
     FileGeneration fg,
     string?name = null,
     ANpc.Mask <bool>?printMask = null)
 {
     if (name == null)
     {
         fg.AppendLine($"ANpc =>");
     }
     else
     {
         fg.AppendLine($"{name} (ANpc) =>");
     }
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         ToStringFields(
             item: item,
             fg: fg,
             printMask: printMask);
     }
     fg.AppendLine("]");
 }
示例#25
0
 public void RemapLinks(IANpcGetter obj, IReadOnlyDictionary <FormKey, FormKey> mapping) => throw new NotImplementedException();