public StackAccumulateEffect Copy(StackAccumulateEffect origin) { threshold = origin.threshold; thresholdAdd = origin.thresholdAdd; effect = origin.effect; return(this); }
public static StackAccumulateEffect Clone(StackAccumulateEffect origin) { return(new StackAccumulateEffect { threshold = origin.threshold, thresholdAdd = origin.thresholdAdd, effect = origin.effect, }); }
public static PersistEffect Clone(PersistEffect origin) { return(new PersistEffect { time = origin.time, id = origin.id, TickHpChange = HpChange.Clone(origin.TickHpChange), TickPeriod = origin.TickPeriod, // 주의 - 능력치 버프는 강화되는 일 없으리라 생각되므로 얕은 복사 사용 changeAbilities = origin.changeAbilities, increaseStack = origin.increaseStack, maxStack = origin.maxStack, stackAccumulateEffect = StackAccumulateEffect.Clone(origin.stackAccumulateEffect), }); }