for Push.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user