Changed command dictionary to a command tree. Fixed various requests. OBS reconnection added if identified previously.
This commit is contained in:
20
Chat/Commands/Parameters/CommandParameter.cs
Normal file
20
Chat/Commands/Parameters/CommandParameter.cs
Normal file
@ -0,0 +1,20 @@
|
||||
namespace TwitchChatTTS.Chat.Commands.Parameters
|
||||
{
|
||||
public abstract class CommandParameter : ICloneable
|
||||
{
|
||||
public string Name { get; }
|
||||
public bool Optional { get; }
|
||||
|
||||
public CommandParameter(string name, bool optional)
|
||||
{
|
||||
Name = name;
|
||||
Optional = optional;
|
||||
}
|
||||
|
||||
public abstract bool Validate(string value);
|
||||
|
||||
public object Clone() {
|
||||
return (CommandParameter) MemberwiseClone();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user