public override void Apply(SimpleAbilities abilities) { _modifier = new RemoveFromList <Static>(_simpleAbility); _modifier.Initialize(ChangeTracker); abilities.AddModifier(_modifier); _simpleAbilties = abilities; }
public override void Apply(SimpleAbilities abilities) { _modifier = new AddToList <Static>(_staticAbility); _modifier.Initialize(ChangeTracker); _abilities = abilities; _abilities.AddModifier(_modifier); }
public override void Apply(SimpleAbilities abilities) { if (!_simple) { return; } _simpleAbilties = abilities; _simpleAbilitiesModifier = new SetList <Static>( new List <Static>()); _simpleAbilitiesModifier.Initialize(ChangeTracker); _simpleAbilties.AddModifier(_simpleAbilitiesModifier); }