18 lines
527 B
C#
18 lines
527 B
C#
using TwitchChatTTS.Twitch.Socket.Messages;
|
|
|
|
namespace TwitchChatTTS.Chat.Commands.Parameters
|
|
{
|
|
public class OBSTransformationParameter : CommandParameter
|
|
{
|
|
private string[] _values = ["x", "y", "rotation", "rotate", "r"];
|
|
|
|
public OBSTransformationParameter(string name, bool optional = false) : base(name, optional)
|
|
{
|
|
}
|
|
|
|
public override bool Validate(string value, TwitchChatFragment[] fragments)
|
|
{
|
|
return _values.Contains(value.ToLower());
|
|
}
|
|
}
|
|
} |