Beispiel #1
0
 public bool Redirect(CommandRepresentation representation, string[] args) => Executor.Execute(new Command(Dispatcher, Executor, Source, representation.Name, args, representation));
Beispiel #2
0
        internal Command(ICommandDispatcher dispatcher, ICommandExecutor executor, ICommandSource?source, string label, string[] args, CommandRepresentation representation)
        {
            this.source     = source;
            this.dispatcher = dispatcher;
            this.executor   = executor;
            raw             = "";

            this.label          = label;
            this.args           = args ?? new string[] { };
            this.representation = representation;
        }