// Constructor /// <summary> /// /// </summary> /// <param name="manager"></param> public Command(CommandManager manager) { this.manager = manager; this.commandInstances = new CommandInstanceList(this); manager.commands.Add(this); }
// Constructor public Command(string strTag, ExecuteHandler handlerExecute, UpdateHandler handlerUpdate) { _commandInstances = new CommandInstanceList(this); Tag = strTag; OnUpdate += handlerUpdate; OnExecute += handlerExecute; }