How fbraz3/generalsx works
GeneralsX is a cross-platform engine and game runtime for Command & Conquer: Generals and Zero Hour, with desktop multiplayer and a Zero Hour browser single-player option. The principal workflow is player input through the platform client into simulation, with rendering and audio presenting the result; campaign, skirmish, replay, and multiplayer are major modes. The graph reflects documented capabilities and the sampled entry points. Several subsystem links are dashed where the excerpts establish architecture but not the exact runtime call path.
Main entry points: GameEngine.cpp Game Engine · ClientInstance.cpp Game Client · GameLogic.h Simulation Logic · GameAudio.cpp Game Audio
Components 21
Game Runtime
- Game Engine
Generals/Code/GameEngine/Source/Common/GameEngine.cpp - Simulation Logic
Generals/Code/GameEngine/Include/GameLogic/GameLogic.h - Script Engine
Generals/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptEngine.cpp - Game State
Generals/Code/GameEngine/Include/Common/GlobalData.h - Game Messages
Core/GameEngine/Include/Common/MessageStream.h - Asset Filesystem
Core/GameEngine/Include/Common/FileSystem.h - File I/O
Core/GameEngine/Include/Common/file.h
Client Presentation
- Game Client
Core/GameEngine/Source/GameClient/ClientInstance.cpp - Game Shell
Core/GameEngine/Include/GameClient/Shell.h - Game View
Core/GameEngine/Include/GameClient/View.h - Game Audio
Core/GameEngine/Source/Common/Audio/GameAudio.cpp
Persistence And Network
- Replay Simulation
Core/GameEngine/Source/Common/ReplaySimulation.cpp - Network Connections
Core/GameEngine/Source/GameNetwork/ConnectionManager.cpp - GeneralsOnline
- Persistent Storage
Platform And Browser
- SDL3 Platform
Generals/Code/GameEngineDevice/Source/SDL3GameEngine.cpp - Windows Platform
Core/GameEngineDevice/Source/Win32Device/Common/Win32GameEngine.cpp - Browser Client
web/src/main.ts
Other components
- Player
- Browser Player
- Original Game Data
Connections 20
- Player → Game Client: plays through
- Game Client → Game Engine: interacts with
- Game Engine → Simulation Logic: runs simulation
- Simulation Logic → Script Engine: executes scripts
Generals/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptEngine.cpp - Game Engine → Game State: uses state
Generals/Code/GameEngine/Source/Common/GameEngine.cpp - Game Client → Game Messages: sends commands
- Simulation Logic → Game Messages: dispatches messages
- Game Client → Game Shell: presents menus
- Game Client → Game View: presents view
- Game Engine → Game Audio: uses audio
Generals/Code/GameEngine/Source/Common/GameEngine.cpp - Game Engine → Asset Filesystem: loads assets
Generals/Code/GameEngine/Source/Common/GameEngine.cpp - Asset Filesystem → File I/O: uses file interface
Core/GameEngine/Include/Common/FileSystem.h - Game Engine → Replay Simulation: supports replay
- Game Engine → Network Connections: supports multiplayer
- GeneralsOnline → Network Connections: provides matchmaking
README.md - Game Engine → Persistent Storage: uses persistence
- SDL3 Platform → Game Audio: configures audio
Generals/Code/GameEngineDevice/Source/SDL3GameEngine.cpp - Windows Platform → Game Audio: selects audio device
- Player → Browser Client: plays in browser
README.md - Browser Client → Original Game Data: requires original data
README.md