Browse Source

Add command call (uREPL wrap)

tags/v0.1.2.0
NGnius (Graham) 5 years ago
parent
commit
72050ceeeb
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      GamecraftModdingAPI/Commands/CommandRegistrationHelper.cs

+ 20
- 0
GamecraftModdingAPI/Commands/CommandRegistrationHelper.cs View File

@@ -64,5 +64,25 @@ namespace GamecraftModdingAPI.Commands
if (noConsole) { return; }
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);
}
}
}

Loading…
Cancel
Save