Пример #1
0
 public override void Apply(SimpleAbilities abilities)
 {
     _modifier = new RemoveFromList <Static>(_simpleAbility);
     _modifier.Initialize(ChangeTracker);
     abilities.AddModifier(_modifier);
     _simpleAbilties = abilities;
 }
Пример #2
0
 public override void Apply(SimpleAbilities abilities)
 {
     _modifier = new AddToList <Static>(_staticAbility);
     _modifier.Initialize(ChangeTracker);
     _abilities = abilities;
     _abilities.AddModifier(_modifier);
 }
Пример #3
0
        public override void Apply(SimpleAbilities abilities)
        {
            if (!_simple)
            {
                return;
            }

            _simpleAbilties          = abilities;
            _simpleAbilitiesModifier = new SetList <Static>(
                new List <Static>());
            _simpleAbilitiesModifier.Initialize(ChangeTracker);
            _simpleAbilties.AddModifier(_simpleAbilitiesModifier);
        }