Hi,
I have created a console for my game in XNA and I have a delegate for when a command has been entered. At the moment the delegate is returning a bool value. I have declared an event inside the Console class (which returns false) and then subscribed to this event from other classes. The idea is, if none of the classes that subscribe to this event return true then it is assumed that the user has entered an invalid command. However if at least one of the subscribed classes returns true then the command is assumed to be valid.
At the moment, only one class is taken into account for returning true or false, is there a way I can look at the return values of all the subscribing classes then OR their result?
Thanks,