Answer the question
In order to leave comments, you need to log in
How to implement a method with a command (C#)?
There is a Buff class with methods Enable() Update() Setup() ReEnable() Abort().
And there is an Action class that contains List buffs.
How to implement a method for an Action of the following type: Action.BuffsOperation( Update ), in which for each buff from the list we call the corresponding Update() method, etc.?
I know about the Command pattern, but maybe there is something simpler for this, for example with delegates?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question