# carmengomezmoreno/sistemaintegradojamonglobal2024 architecture

> Architecture diagram of the GitHub repository carmengomezmoreno/sistemaintegradojamonglobal2024, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-31). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/carmengomezmoreno/sistemaintegradojamonglobal2024
- Repository: https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024

## Overview

##### Main Components
- Unity Engine & Core – At the center, note that this is a Unity project, so the Unity runtime and its core modules (rendering, physics, etc.) are the underlying execution environment.
- Assets – Represented as a collection that includes:
- Arte (game art, sprite-sheets, animations, controllers)
- Audio (SFX, music, dialogues, voices)
- Fonts and TextMesh Pro resources
- Materials and Prefabs (UI elements, game objects like Audience, GameManager, DialogueManager, etc.)
- Scenes – Several .unity files (MainMenu, Game, InterLevel, etc.) showing different game states.
- Source Code – The “Source” folder (with subfolders like AudioManager, Dialogue, GameManager, UI, etc.) which defines the game logic, event handling, and communication between systems.
- Project Configuration – Including ProjectSettings and Packages that hold Unity configuration, quality settings, input manager, and dependency declarations.

##### Relationships and Interaction Flow
- The GameManager prefab (and its underlying scripts) acts as a central coordinator that interacts with specific managers like AudioManager, DialogueManager, and SceneryManager.
- The UI components (in the “Prefabs/UI” and “Source/UI” directories) should be shown as a layer interacting with gameplay events and game state changes.
- External resources (such as third-party packages, TextMesh Pro, and external art/sound assets) need a separate "Asset Management" group or label, showing that they supply the inputs for Unity’s UI and rendering systems.

##### Architectural Patterns & Design Principles
- Component/Entity-Based Design – The organization of Prefabs and Scriptable Objects reflects Unity’s design where game functionality is attached as components.
- Separation of Concerns – Different directories (Audio, Dialogue, UI) imply that managers and modules have dedicated responsibilities and the GameManager coordinates overall state.
- Modular Architecture – The presence of multiple “Manager” classes (GameManager, AudioManager, DialogueManager, SceneryManager, and others) indicates that while components communicate, each has a unique responsibility, suggesting decoupled modules.

##### Relevant Technologies and Frameworks
- Unity’s game engine is central, with specific technologies like C# scripts for game logic, TextMesh Pro for advanced typography, and Unity’s audio and physics systems.
- The use of prefabs, scenes, scriptable objects, and package management (manifest.json, packages-lock.json) indicate reliance on established Unity best practices.

##### Instructing to Include the Following Elements
- Clear Labels – Each component/group should be clearly identified (e.g., “Audio System: AudioManager & Audio Prefabs”, “UI System: UI Prefabs & UI Scripts”, “Game Logic: GameManager, Dialogue Manager, etc.”).
- Integration Points – Show how Scenes load assets and initialize managers, and capture the feedback loops (e.g., UI triggers game events that update internal game state).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Deployment/Runtime Environment
    subgraph "Deployment/Runtime Environment"
        UCORE("Unity Engine & Core"):::core
        PS("ProjectSettings"):::core
        PK("Packages"):::core
    end

    %% Asset & Resource Layer
    subgraph "Asset & Resource Layer"
        ART("Art & Animations"):::asset
        AUD("Audio Assets"):::asset
        FONTS("Fonts"):::asset
        TMP("TextMesh Pro"):::asset
        MAT("Materials"):::asset
        AS_SCENES("Scenes"):::asset
    end

    %% Game Logic & Code Layer
    subgraph "Game Logic & Code Layer"
        %% GameManager Subsystem
        subgraph "GameManager Subsystem"
            GM1("Prefab"):::logic
            GM2("Script"):::logic
        end

        %% Audio System
        subgraph "Audio System"
            A1("Prefab"):::logic
            A2("Script"):::logic
        end

        %% Dialogue System
        subgraph "Dialogue System"
            D1("Dialogue Manager Prefab"):::logic
            D2("DialogueManager Script"):::logic
            D3("DialogueTrigger Script"):::logic
        end

        %% Audience System
        subgraph "Audience System"
            AU1("Audience Prefab"):::logic
            AU2("AudienceManager Script"):::logic
            AU3("AudienceMember Script"):::logic
        end

        %% Line System
        subgraph "Line System"
            L1("Line Manager Prefab"):::logic
            L2("LineManager Script"):::logic
        end

        %% Scenery System
        subgraph "Scenery System"
            S1("Scenery Manager Prefab"):::logic
            S2("SceneryManager Script"):::logic
        end

        %% UI System
        subgraph "UI System"
            U1("UI Prefabs"):::logic
            U2("UI Scripts"):::logic
        end
    end

    %% Scene/Presentation Layer
    subgraph "Scene/Presentation Layer"
        P_SCENES("Game Scenes"):::presentation
        P_UI("UI Prefabs (Scene)"):::presentation
    end

    %% Connections within Deployment/Runtime Environment
    UCORE --> PS
    UCORE --> PK

    %% Unity Engine provides assets
    UCORE --> ART
    UCORE --> AUD
    UCORE --> FONTS
    UCORE --> TMP
    UCORE --> MAT
    UCORE --> AS_SCENES

    %% Asset layer to Scene/Presentation layer
    AS_SCENES --> P_SCENES

    %% Scenes initialize game logic and UI presentation
    P_SCENES --> GM2
    P_SCENES --> P_UI
    P_UI --> U2

    %% Direct connection from runtime to game logic
    UCORE --> GM2

    %% GameManager Subsystem notifies other systems
    GM2 --> A2
    GM2 --> D2
    GM2 --> AU2
    GM2 --> L2
    GM2 --> S2
    GM2 --> U2

    %% Styles
    classDef core fill:#ffeecc,stroke:#ffaa00,stroke-width:2px;
    classDef asset fill:#ccffcc,stroke:#33aa33,stroke-width:2px;
    classDef logic fill:#ccccff,stroke:#0000ff,stroke-width:2px;
    classDef presentation fill:#ffcccc,stroke:#ff0000,stroke-width:2px;

    %% Click Events
    click PS "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/ProjectSettings"
    click PK "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Packages"
    click ART "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Arte"
    click AUD "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/SFX"
    click FONTS "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Fonts"
    click TMP "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/TextMesh Pro"
    click MAT "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Materials"
    click AS_SCENES "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Scenes"
    click GM1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/GameManager.prefab"
    click GM2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/GameManager/GameManager.cs"
    click A1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/AudioManager.prefab"
    click A2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/AudioManager/AudioManager.cs"
    click D1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/DialogueManager.prefab"
    click D2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/Dialogue/DialogueManager.cs"
    click D3 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/Dialogue/DialogueTrigger.cs"
    click AU1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/Audience"
    click AU2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/AudienceManager.cs"
    click AU3 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/AudienceMember.cs"
    click L1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/LineManager.prefab"
    click L2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/LineManager/LineManager.cs"
    click S1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/SceneryManager.prefab"
    click S2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/blob/master/JuegoJamonGlobalOffensive2024/Assets/Source/SceneryManager.cs"
    click U1 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Prefabs/UI"
    click U2 "https://github.com/carmengomezmoreno/sistemaintegradojamonglobal2024/tree/master/JuegoJamonGlobalOffensive2024/Assets/Source/UI"
```
