コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
        }