How openxray/xray-16 works
OpenXRay is a cross-platform, 64-bit-capable reimplementation of the X-Ray engine for supported S.T.A.L.K.E.R. games. The player-facing runtime begins with engine initialization and game/level execution; the broader engine includes rendering, scripting, AI/navigation, physics, sound, UI, and persistence. The graph preserves these documented product areas and major indexed modules. Many subsystem implementations were not sampled, so uncertain runtime links are shown as unverified rather than asserted as source-proven calls.
Main entry points: Level.h Level runtime · Engine.cpp Engine runtime · IGame_Persistent.h Game lifecycle · wallmark_manager.cpp Wallmark management
Components 20
Runtime and game
- Engine runtime
src/xrEngine/Engine.cpp - Engine API
src/xrEngine/EngineAPI.cpp - Game lifecycle
src/xrEngine/IGame_Persistent.h - Level runtime
src/xrGame/Level.h - ALife persistence
src/xrGame/alife_storage_manager.cpp - Multiplayer networking
src/xrNetServer
Rendering and presentation
- Renderer selection
src/xrEngine/EngineAPI.cpp - Wallmark rendering
src/Layers/xrRender/WallmarksEngine.cpp - Wallmark management
src/xrGame/wallmark_manager.cpp - Rendering shaders
res/gamedata/shaders
World simulation
- AI navigation
src/xrAICore/Navigation - Physics
src/xrPhysics - Collision database
src/xrCDB - Sound system
src/xrSound - Game materials
src/xrMaterialSystem/GameMtlLib.h
Scripting and tools
- Script engine
src/xrScriptEngine/script_engine.cpp - Script bindings
src/xrScriptEngine/ScriptExporter.hpp - Weather editor
src/editors/xrWeatherEngine/engine_impl.cpp - UI core
src/xrUICore
Other components
- Player
Connections 20
- Player → Engine runtime: starts game
- Engine runtime → Engine API: initializes API
- Engine runtime → Game lifecycle: runs lifecycle
- Game lifecycle → Level runtime: manages level
src/xrGame/Level.h - Level runtime → ALife persistence: saves state
src/xrGame/alife_storage_manager.cpp - Engine API → Renderer selection: selects renderer
src/xrEngine/EngineAPI.cpp - Wallmark management → Level runtime: reads level
src/xrGame/wallmark_manager.cpp - Wallmark management → Game materials: uses materials
src/xrGame/wallmark_manager.cpp - Wallmark management → Physics: uses geometry
src/xrGame/wallmark_manager.cpp - Renderer selection → Wallmark rendering: renders marks
- Renderer selection → Rendering shaders: uses shaders
- Level runtime → Multiplayer networking: network state
src/xrGame/Level.h - Level runtime → Game lifecycle: uses lifecycle
src/xrGame/Level.h - Level runtime → AI navigation: uses navigation
- Level runtime → Physics: uses physics
- Level runtime → Sound system: uses sound
- Script engine → Script bindings: loads bindings
- Weather editor → Game lifecycle: accesses environment
src/editors/xrWeatherEngine/engine_impl.cpp - Engine runtime → UI core: uses console
src/xrEngine/Engine.cpp - Collision database → Physics: supports collision