CSharpRedotTools / Template

A template used for quickly setting up new Redot 4 C# games.
MIT License
111 stars 8 forks source link

Add support for static methods to ConsoleCommands #65

Open valkyrienyanko opened 1 month ago

valkyrienyanko commented 1 month ago
[ConsoleCommand("help")]
private void Help()
{
    IEnumerable<string> cmds = Game.Console.Commands.Select(x => x.Name);

    Game.Log(cmds.ToFormattedString());
}