Architecture of rwengine/openrw
rwengine/openrw is 308 source files holding 6,279 symbols across 10 modules, written mainly in C++, Python, Shell. The largest module is rwengine, with 139 files, and 2 files are entry points into the dependency graph.
How openrw fits together
The rwgame/main.cpp file is one of the two entry points and starts the game. The rwviewer/main.cpp file is the second entry point and starts the viewer, which is built on the Qt5Widgets and Qt5OpenGL dependencies. The rwengine directory is the largest module, with 139 files, and the rwcore and rwgame directories hold 37 files each. Build configuration is defined in CMakeLists.txt, and the project uses OpenGL, OpenAL, Bullet and FFmpeg among its dependencies. The original game data is needed at runtime, because the game cannot be played without a legitimate copy of the original PC game.
Largest modules
- rwengine: 139 files and 24,532 lines of code
- tests: 43 files and 2,625 lines of code
- rwcore: 37 files and 9,986 lines of code
- rwgame: 37 files and 4,505 lines of code
- rwviewer: 35 files and 1,910 lines of code
- scripts: 5 files and 473 lines of code
- cmake: 1 file and 18 lines of code
- external: 1 file and 6 lines of code
Languages
By file count: C++ 292 files, Python 5 files, Shell 2 files, C 1 file.
Documentation
Repowise documents openrw in 361 pages generated from the source, 31 of them written explanations of the repository and its modules. Module guides include:
- rwengine/src: AI Graph and Character Control
More on openrw: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos