chaosbot/ChaosBot/Services/ProgrammingLanguageInterpreter/ProgrammingLanguageInterpreterFactory.cs

19 lines
506 B
C#

using ChaosBot.Models;
namespace ChaosBot.Services.ProgrammingLanguageInterpreter
{
internal static class ProgrammingLanguageInterpreterFactory
{
public static IProgrammingLanguageInterpreter GetInterpreter(CustomCommandType type)
{
switch (type)
{
case CustomCommandType.CustomLua:
return new LuaProgrammingLanguageInterpreter();
default:
return null;
}
}
}
}