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); }
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); }
public override object GetNew() { return(ADamageType.GetNew()); }