private void init_copy(AttackRollResult to_copy) { this.AdvantageModifiers = to_copy.AdvantageModifiers.Clone() as SituationalAdvantageModifiers; this.AttackRoll = to_copy.AttackRoll; this.BaseRollModifier = to_copy.BaseRollModifier; this.Caster = to_copy.Caster; this.HitModifiers = to_copy.HitModifiers.Clone() as SituationalAttackRollModifiers; this.Target = to_copy.Target; }
public AttackRollResult(AttackRollResult to_copy) { init_copy(to_copy); }