示例#1
0
        public override void Apply(DamagePreventions damagePreventions)
        {
            _damagePreventions = damagePreventions;
            _damagePrevention  = _damagePrevention ?? _damagePreventionFactory(this);
            _damagePrevention.Initialize(this, Game);

            damagePreventions.AddPrevention(_damagePrevention);
        }
        public override void Apply(DamagePreventions damagePreventions)
        {
            _damagePreventions = damagePreventions;
              _damagePrevention = _damagePrevention ?? _damagePreventionFactory(this);
              _damagePrevention.Initialize(this, Game);

              damagePreventions.AddPrevention(_damagePrevention);
        }