Add command call (uREPL wrap)

This commit is contained in:
NGnius (Graham) 2019-12-28 14:40:34 -05:00
parent b796751420
commit 72050ceeeb

View file

@ -64,5 +64,25 @@ namespace GamecraftModdingAPI.Commands
if (noConsole) { return; } if (noConsole) { return; }
ConsoleCommands.Unregister(name); ConsoleCommands.Unregister(name);
} }
public static void Call(string name)
{
RuntimeCommands.Call(name);
}
public static void Call<Param0>(string name, Param0 param0)
{
RuntimeCommands.Call<Param0>(name, param0);
}
public static void Call<Param0, Param1>(string name, Param0 param0, Param1 param1)
{
RuntimeCommands.Call<Param0, Param1>(name, param0, param1);
}
public static void Call<Param0, Param1, Param2>(string name, Param0 param0, Param1 param1, Param2 param2)
{
RuntimeCommands.Call<Param0, Param1, Param2>(name, param0, param1, param2);
}
} }
} }