Exemple #1
0
        public ADamageType DeepCopy(
            IADamageTypeGetter item,
            ADamageType.TranslationMask?copyMask = null)
        {
            ADamageType ret = (ADamageType)((ADamageTypeCommon)((IADamageTypeGetter)item).CommonInstance() !).GetNew();

            ((ADamageTypeSetterTranslationCommon)((IADamageTypeGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
Exemple #2
0
        public ADamageType DeepCopy(
            IADamageTypeGetter item,
            out ADamageType.ErrorMask errorMask,
            ADamageType.TranslationMask?copyMask = null)
        {
            var         errorMaskBuilder = new ErrorMaskBuilder();
            ADamageType ret = (ADamageType)((ADamageTypeCommon)((IADamageTypeGetter)item).CommonInstance() !).GetNew();

            ((ADamageTypeSetterTranslationCommon)((IADamageTypeGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = ADamageType.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }
Exemple #3
0
 public override object GetNew()
 {
     return(ADamageType.GetNew());
 }