OpenWorld
OpenWorld copied to clipboard
Refactoring Stage 1
Stage 1 of the server refactoring I've been working on.
Highlights:
- There's an "Enter Command" prompt now that properly sits at the bottom of the server window.
- Command processing has been encapsulated into its own class, reducing the size of the main program class to ~150 lines from ~1200.
- Server message output has been rewritten to allow for more efficient multi-line/single-write output in 4 colors set by constants.
- The memory leak caused by recursively calling ListenForCommands() has been fixed.
- I started writing handling for commands to take a string array for arguments. Currently this has only been implemented into Say, Notify and NotifyAll.