How pawel-szajna/schron works
Main Components
a) Core Engine Layer:
• Engine Module (src/engine)
• World Module (src/world)
• SDL Wrapper Module (src/sdlwrapper)
• Utility Module (src/util)
b) Game Logic Layer:
• Game Module (src/game)
• UI Module (src/ui)
• Scripting Module (src/scripting)
c) External Dependencies:
• SDL (Graphics, Input)
• Lua (Scripting)
• Sol2 (Lua Integration)
• SPDLog (Logging)
[External Libraries Layer]
• SDL | Lua | Sol2 | SPDLog
• ↑
[Core Engine Layer]
• SDL Wrapper → Engine Core ← World System
• ↑ ↑ ↑
[Game Logic Layer]
• UI System → Game Logic ← Scripting System
• ↑ ↑
[Resource Layer]
• Assets | Scripts | Levels
Component Relationships
• SDL Wrapper abstracts SDL functionality for the engine
• Engine Core coordinates between World System and Game Logic
• Scripting System interfaces with both Game Logic and World System
• UI System depends on SDL Wrapper for rendering
• Game Logic orchestrates UI, World, and Scripting systems
Additional Details
Annotations for:
• Parallel execution capabilities
• Build system dependencies
• Platform-specific considerations
• Key configuration files
Implementation Notes
• The modular architecture (separate CMake files per component)
• The clear separation between engine and game logic
• The extensive use of scripting for game behavior
• The abstraction layers (especially SDL wrapper)