How to implement method command (C#)?
There is a Buff class with the methods Enable() Update() Setup() ReEnable() Abort().
Is the Action class that contains the List buffs.
How to implement the method from the Action like this: Action.BuffsOperation( Update ), which for each buff from this list by an appropriate method, Update() etc?
Know about Command pattern but may be, for such there is something easier, for example with delegates?
asked June 14th 19 at 20:09
Make a enum with arguments to BuffsOperation in BuffsOperation switch and sort the sheet by calling the corresponding method does not suit you?
Find more questions by tags C#