OpenWorld icon indicating copy to clipboard operation
OpenWorld copied to clipboard

Refactoring Stage 1

Open JamesonRGrieve opened this issue 2 years ago • 0 comments

Stage 1 of the server refactoring I've been working on. image

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.

JamesonRGrieve avatar Oct 15 '22 19:10 JamesonRGrieve