public HitterList(IEngine engine, Info.HitterList info) { if (info.Damage.HasValue) { Damage = new DamageHitter(engine, info.Damage.Value); } if (info.AddModifier.HasValue) { AddModifier = new AddModifierHitter(info.AddModifier.Value); } }
public DamageHitter Instantiate(IEngine engine) { var instance = new DamageHitter(engine, new Info.DamageHitter { Subtract = Subtract.Read(), PureChance = PureChance.Read(), CriticalChance = CriticalChance.Read(), LifeStealPercent = LifeStealPercent.Read(), DotSpeed = DotSpeed.Read(), }); instance.SetupForInstantiate(); return(instance); }