示例#1
0
 public OnCommandEvent(Command command, string[] args, string complete)
 {
     Command = command;
     Args = args;
     Complete = complete;
 }
示例#2
0
        public void RemoveCommand(Command command)
        {
            Command outcommand;
            Commands.TryGetValue("!" + command.CommandName, out outcommand);

            if (outcommand == null)
            {
                Commands.Remove("!" + command.CommandName);
            }
        }
示例#3
0
        public void AddCommand(Command command)
        {
            Command outcommand;
            Commands.TryGetValue("!" + command.CommandName, out outcommand);

            if (outcommand == null)
            {
                Commands.Add("!" + command.CommandName, command);
            }
        }
示例#4
0
 protected void RegisterCommand(Command command)
 {
     SpiffCore.Instance.AddCommand(command);
 }