Skip to content

Claude/reorganize legacy code cx u jf - #95

Merged
billy1arm merged 2 commits into
mainfrom
claude/reorganize-legacy-code-cxUJf
Feb 26, 2026
Merged

Claude/reorganize legacy code cx u jf#95
billy1arm merged 2 commits into
mainfrom
claude/reorganize-legacy-code-cxUJf

Conversation

@billy1arm

@billy1arm billy1arm commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

This change is Reviewable

Re-separates the WorldCluster and WorldServer into independent processes,
reversing the monolithic merge from commit 355195a. This implementation
improves upon the original by using a custom binary TCP protocol for
inter-process communication instead of .NET Remoting.

Architecture:
- Mangos.Cluster.Interop: New shared library providing binary RPC protocol
  with length-prefixed frames, request/response correlation, and automatic
  ICluster/IWorld proxy generation over TCP connections
- WorldCluster: Standalone cluster executable accepting game client TCP
  connections (port 8085) and world server IPC connections (port 50001)
- WorldServer: Standalone world server executable connecting to cluster
  via IPC and handling world simulation

The existing GameServer monolithic mode is preserved. Docker Compose
supports both deployment modes via profiles (monolithic/distributed).

https://claude.ai/code/session_01LK4hBwJ8AhEPgNELyzJkWD
Move types from the monolithic legacy project into their correct homes:
- ICluster, IWorld, ClientInfo, ServerInfo → Mangos.Cluster.Interop
- SQL, SqlExtensions, DbVersionChecker → Mangos.MySql
- BaseWriter, ConsoleWriter, ColoredConsoleWriter, FileWriter → Mangos.Logging
- Functions, NativeMethods, StringFunctions → Mangos.Common

Update all using statements across 50+ files in Mangos.Cluster and
Mangos.World to reference the new namespaces, and delete the now-empty
Mangos.Common.Legacy project.

https://claude.ai/code/session_01Di4VqaQ3sc3zEBgg2VC8ji
@billy1arm
billy1arm merged commit d316186 into main Feb 26, 2026
0 of 2 checks passed
@billy1arm
billy1arm deleted the claude/reorganize-legacy-code-cxUJf branch February 26, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants