예제 #1
0
 public static Armor DeepCopy(
     this IArmorGetter item,
     Armor.TranslationMask?copyMask = null)
 {
     return(((ArmorSetterTranslationCommon)((IArmorGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
예제 #2
0
 public static Armor Duplicate(
     this IArmorGetter item,
     FormKey formKey,
     Armor.TranslationMask?copyMask = null)
 {
     return(((ArmorCommon)((IArmorGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
예제 #3
0
 public static bool Equals(
     this IArmorGetter item,
     IArmorGetter rhs,
     Armor.TranslationMask?equalsMask = null)
 {
     return(((ArmorCommon)((IArmorGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs,
                crystal: equalsMask?.GetCrystal()));
 }
예제 #4
0
        public Armor DeepCopy(
            IArmorGetter item,
            Armor.TranslationMask?copyMask = null)
        {
            Armor ret = (Armor)((ArmorCommon)((IArmorGetter)item).CommonInstance() !).GetNew();

            ((ArmorSetterTranslationCommon)((IArmorGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
예제 #5
0
        public static void DeepCopyIn(
            this IArmorInternal lhs,
            IArmorGetter rhs,
            out Armor.ErrorMask errorMask,
            Armor.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((ArmorSetterTranslationCommon)((IArmorGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = Armor.ErrorMask.Factory(errorMaskBuilder);
        }
예제 #6
0
        public Armor DeepCopy(
            IArmorGetter item,
            out Armor.ErrorMask errorMask,
            Armor.TranslationMask?copyMask = null)
        {
            var   errorMaskBuilder = new ErrorMaskBuilder();
            Armor ret = (Armor)((ArmorCommon)((IArmorGetter)item).CommonInstance() !).GetNew();

            ((ArmorSetterTranslationCommon)((IArmorGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = Armor.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }