Example #1
0
 public static ANpcSpawn DeepCopy(
     this IANpcSpawnGetter item,
     out ANpcSpawn.ErrorMask errorMask,
     ANpcSpawn.TranslationMask?copyMask = null)
 {
     return(((ANpcSpawnSetterTranslationCommon)((IANpcSpawnGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: out errorMask));
 }
Example #2
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);
        }