Tag Info

New answers tagged


That's pretty much the way to do it. The debug console API should have a method to associate commands the user types in it (such as spawn zombie) with actions. The command pattern, which you've already discovered, is one such method of implementing that association. The debug console exposes an addCommand(string, ICommand) method which associates a string ...

Top 50 recent answers are included