How wtfblub/netspherepirates works
NetspherePirates is an experimental S4 League patch-34 server emulator. Its user-facing flow is client connections through authentication, then chat and game services for player, channel, room, inventory and match activity; a relay supports peer-to-peer communication. Persistent account/game state and loaded game data underpin those services, while the optional Web API exposes administration and server data. The tree and README establish the product shape; sampled handler and manager references support only some cross-service links, so other important relationships are shown as unverified dashed edges.
Main entry points: ProudSession.cs ProudNet Transport · RoomHandler.cs Gameplay · GameDataService.cs Game Data · GameContext.cs Player Records
Components 17
Networking
- P2P Relay
src/Netsphere.Server.Relay/Handlers/EventHandler.cs - Protocol Messages
src/Netsphere.Network/Message/Game/GameMessageFactory.cs - ProudNet Transport
src/ProudNet/ProudSession.cs
Game Services
- Authentication
src/Netsphere.Server.Auth/Handlers/AuthenticationHandler.cs - Chat and Social
src/Netsphere.Server.Chat/Handlers/ChatHandler.cs - Gameplay
src/Netsphere.Server.Game/Handlers/RoomHandler.cs - Characters
src/Netsphere.Server.Game/CharacterManager.cs
Data and State
- Account Records
src/Netsphere.Database/AuthContext.cs - Player Records
src/Netsphere.Database/GameContext.cs - Game Data
src/Netsphere.Server.Game/Services/GameDataService.cs - ID Generation
src/Netsphere.Common/IdGeneratorService.cs - Database Access
src/Netsphere.Database/DatabaseService.cs - Resource Formats
src/Netsphere.Resource/S4Zip.cs
Extensions
- Web API
src/plugins/WebApi/WebApiService.cs - Plugin Host
src/Netsphere.Common/Plugins/MefPluginHost.cs - Shop Editor
src/tools/Netsphere.Tools.ShopEditor/Services/ShopService.cs
Other components
- Game Client
Connections 19
- Game Client → ProudNet Transport: connects
- ProudNet Transport → Authentication: dispatches
- ProudNet Transport → Chat and Social: dispatches
- ProudNet Transport → Gameplay: dispatches
- ProudNet Transport → P2P Relay: dispatches
- Authentication → Account Records: queries
src/Netsphere.Server.Auth/Handlers/AuthenticationHandler.cs - Authentication → Database Access: opens context
src/Netsphere.Server.Auth/Handlers/AuthenticationHandler.cs - Chat and Social → Player Records: loads settings
- Gameplay → Player Records: loads players
- Gameplay → Game Data: requests items
- Characters → Player Records: saves characters
src/Netsphere.Server.Game/CharacterManager.cs - Characters → ID Generation: allocates IDs
src/Netsphere.Server.Game/CharacterManager.cs - Game Data → Database Access: loads shop data
src/Netsphere.Server.Game/Services/GameDataService.cs - P2P Relay → ProudNet Transport: uses sessions
- Gameplay → Protocol Messages: sends messages
- Web API → Game Data: reads game data
src/plugins/WebApi/WebApiService.cs - Plugin Host → Web API: hosts plugin
- Shop Editor → Player Records: edits shop
- Resource Formats → Game Data: provides resources