23 lines
788 B
C#
23 lines
788 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KssSmaPlaLib.AutoTest.Command.Definition
|
|
{
|
|
public static class CommandParserUxer
|
|
{
|
|
private static readonly Dictionary<string, CommandEnumUxer.Command> _map = new Dictionary<string, CommandEnumUxer.Command>()
|
|
{
|
|
{ "Sleep", CommandEnumUxer.Command.Sleep },
|
|
{ "SetText", CommandEnumUxer.Command.SetText },
|
|
{ "PushButton", CommandEnumUxer.Command.PushButton },
|
|
{ "TryDbMoshimoshi", CommandEnumUxer.Command.TryDbMoshimoshi }
|
|
};
|
|
|
|
public static bool TryParse(string commandStr, out CommandEnumUxer.Command command)
|
|
=> _map.TryGetValue(commandStr, out command);
|
|
}
|
|
}
|