GentenStudios / QuartzEngine

Nolonger used, see Phoenix repo
BSD 3-Clause "New" or "Revised" License
34 stars 10 forks source link

Feat commander #158

Open apachano opened 5 years ago

apachano commented 5 years ago

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.

apachano commented 5 years ago

This should be cleaned up and ready for re-review

DontBelieveMe commented 5 years ago

Requested a few more changes, sorry about going round this again, it's either new stuff or stuff I missed last time :D

apachano commented 5 years ago

@GentenStudios/lead-developers and it builds! lol fuck SDL Okay I am trying to start arguments in the comments lol