StrongJoshua / libgdx-inGameConsole

A LibGdx library that allows a developer to add a console (similar to how it is featured in Source games) to their game.
https://www.strongjoshua.net/projects/games/libgdx-ingame-console
Apache License 2.0
131 stars 35 forks source link

Support programatically registered commands #55

Open dzikoysk opened 3 years ago

dzikoysk commented 3 years ago

Hey, could you provide a possibility to register multiple command executors/support programmatically registered commands through the Console API? ❤️

At this moment we can only use one command executor per instance. It works for some simple utilities, but it's not enough for a greater projects with a bunch of commands and component based layout. You can just collect their instances by e.g. addCommandExecutor instead of setCommandExecutor, it would be very helpful :)

StrongJoshua commented 3 years ago

That sounds useful! If you have the time, you can submit a pull request yourself, otherwise I will try to get to it soon.

dzikoysk commented 3 years ago

Unfortunately I don't have enough time to develop this project :(