# egorvasilev1/crashengine architecture

> Architecture diagram of the GitHub repository egorvasilev1/crashengine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/egorvasilev1/crashengine
- Repository: https://github.com/egorvasilev1/crashengine

## Overview

##### Main Components

a. Core Engine Systems:
- Rendering System
- Physics Engine
- Audio System
- Input Management
- Resource Management
- Scene Graph
- Memory Management

b. Supporting Systems:
- Asset Pipeline
- Build System
- Scripting Engine
- Debug/Profiling Tools

##### Key Relationships to Highlight

- System dependencies
- Data flow between components
- API boundaries
- External tool integration points

## Diagram (Mermaid)

```mermaid
graph TB
    %% Main Layers
    subgraph GameLayer["Game/Application Layer"]
        GameLogic["Game Logic"]
        GameScripts["Game Scripts"]
        GameAssets["Game Assets"]
    end

    subgraph EngineLayer["Engine Systems Layer"]
        subgraph CoreSystems["Core Systems"]
            Renderer["Rendering System"]:::core
            Physics["Physics Engine"]:::core
            Audio["Audio System"]:::core
            Input["Input Management"]:::core
            Memory["Memory Management"]:::critical
        end

        subgraph ResourceSystems["Resource Systems"]
            ResourceMgr["Resource Manager"]:::resource
            AssetPipeline["Asset Pipeline"]:::resource
            SceneGraph["Scene Graph"]:::resource
        end

        subgraph ToolingSystems["Tools & Utilities"]
            BuildSystem["Build System"]:::utility
            ScriptEngine["Scripting Engine"]:::utility
            DebugTools["Debug/Profiling Tools"]:::utility
        end
    end

    subgraph PlatformLayer["Platform Abstraction Layer"]
        Graphics["Graphics API"]:::platform
        AudioAPI["Audio API"]:::platform
        InputAPI["Input API"]:::platform
        FileSystem["File System"]:::platform
        Threading["Threading"]:::critical
    end

    %% Relationships
    GameLogic --> ScriptEngine
    GameScripts --> ScriptEngine
    GameAssets --> ResourceMgr
    
    Renderer --> Graphics
    Audio --> AudioAPI
    Input --> InputAPI
    
    ResourceMgr --> FileSystem
    AssetPipeline --> FileSystem
    
    Memory --> Threading
    
    ScriptEngine --> Memory
    Physics --> Memory
    Renderer --> Memory
    
    SceneGraph --> Renderer
    SceneGraph --> Physics
    
    DebugTools -.-> CoreSystems
    DebugTools -.-> ResourceSystems

    %% Styles
    classDef core fill:#3498db
    classDef resource fill:#2ecc71
    classDef platform fill:#e67e22
    classDef utility fill:#9b59b6
    classDef critical fill:#e74c3c
    
    %% Legend
    subgraph Legend
        CoreLegend["Core Systems"]:::core
        ResourceLegend["Resource Systems"]:::resource
        PlatformLegend["Platform Components"]:::platform
        UtilityLegend["Tools & Utilities"]:::utility
        CriticalLegend["Critical Systems"]:::critical
    end
```
