Open apachano opened 5 years ago
This should be cleaned up and ready for re-review
Requested a few more changes, sorry about going round this again, it's either new stuff or stuff I missed last time :D
@GentenStudios/lead-developers and it builds! lol fuck SDL Okay I am trying to start arguments in the comments lol
Adds a command registry and CLI interface. The CommandBook is the registry that stores commands for use by a Commander. A Commander is constructed with a CommandBook and two streams (one in and one out) that can either be cin/cout for terminal use with the server or point to streams in the client (the chat terminal). The commander contains a loop that checks for input and executes commands.
The commanders have 3 built-in functions that don't exist in the CommandBook, these are hardcoded and can't be overwritten. A help function, a list function, and an exit function.