23 lines
698 B
C#
23 lines
698 B
C#
using KssSmaPlaLib.AutoTest.Command.Definition;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KssSmaPlaLib.AutoTest.Command.Alias
|
|
{
|
|
public class CommandAliasUxer
|
|
{
|
|
private static Dictionary<string, CommandEnumUxer.Command> _reverseMap = new Dictionary<string, CommandEnumUxer.Command>();
|
|
|
|
public static void SetAleiasDic(Dictionary<string, CommandEnumUxer.Command> dic)
|
|
{
|
|
_reverseMap = dic;
|
|
}
|
|
|
|
public static bool TryTranslate(string userCommand, out CommandEnumUxer.Command command)
|
|
=> _reverseMap.TryGetValue(userCommand, out command);
|
|
}
|
|
}
|