2024-08-04 19:46:10 -04:00
|
|
|
using TwitchChatTTS.Twitch.Socket.Messages;
|
|
|
|
|
2024-07-19 12:56:41 -04:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-08-12 15:45:17 -04:00
|
|
|
public override bool Validate(string value, TwitchChatFragment[] fragments)
|
2024-07-19 12:56:41 -04:00
|
|
|
{
|
|
|
|
return _values.Contains(value.ToLower());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|