# extinction-minijeux/client-open-source architecture

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

- Interactive diagram: https://gitdiagram.com/extinction-minijeux/client-open-source
- Repository: https://github.com/extinction-minijeux/client-open-source

## Overview

##### Main Components Identification

A. Core Layers (Top to Bottom):
- Client Interface Layer (Vue.js Components)
- Game Engine Layer (Individual Games)
- Network Communication Layer (WebSocket)
- Resource Management Layer

**[Client Interface Layer]**
- Authentication Components
- Social Components (Chat, Messaging)
- Forum System
- Game Interface Components

**[Game Engine Layer]**
- Aaaah Game Engine
- Physics Engine
- Map System
- Player Management
- Bouboum Game Engine
- Bomb System
- Map System
- Player Management

**[Network Layer]**
- WebSocket Handler
- Event System
- State Management

**[Resource Layer]**
- Asset Management
- Sound System
- Image Loading System

##### Component Relationships
- Data flow between components
- Component dependencies
- Event propagation paths

##### Implementation Details

**┌─────────────────────┐**
- Component Name      │
- ┤
- Key Properties    │
- Main Functions    │
- Dependencies      │
- ┘

##### Notes
- Architectural patterns used (Component-based, Event-driven)
- Separation of concerns between games and core systems
- How the system handles real-time game state updates

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Presentation Layer"
        App["Vue.js App"]:::vue
        Router["Router System"]:::vue
        Windows["Windows System"]:::ui
        PlayerList["Player List"]:::ui
        MessagingUI["Messaging UI"]:::ui
        Options["Options"]:::ui
    end

    subgraph "Feature Modules"
        Chat["Chat System"]:::feature
        Forum["Forum System"]:::feature
        Profile["Profile System"]:::feature
        Messaging["Messaging System"]:::feature
    end

    subgraph "Core Services"
        Auth["Authorization"]:::core
        WSHandler["WebSocket Handler"]:::core
        MsgParser["Message Parser"]:::core
        PlayerMgmt["Player Management"]:::core
        Channel["Channel System"]:::core
        Team["Team Management"]:::core
        EventSystem["Event System"]:::core
    end

    subgraph "Game Engine"
        GameController["Main Game Controller"]:::game
        SpriteMgmt["Sprite Management"]:::game
        ImageLoader["Image Loading"]:::game
        
        subgraph "Game Modules"
            Aaaah["Aaaah Game"]:::game
            Bouboum["Bouboum Game"]:::game
            AaaahEvents["Aaaah Event Handler"]:::game
            BoumEvents["Bouboum Event Handler"]:::game
            AaaahSprites["Aaaah Sprites Manager"]:::game
        end
    end

    %% Relationships
    App --> Router
    App --> WSHandler
    WSHandler --> MsgParser
    WSHandler --> EventSystem
    
    GameController --> SpriteMgmt
    GameController --> ImageLoader
    
    Aaaah --> AaaahEvents
    Aaaah --> AaaahSprites
    Bouboum --> BoumEvents
    
    Chat --> Channel
    Chat --> PlayerMgmt
    
    PlayerMgmt --> Auth
    Profile --> PlayerMgmt
    
    %% Click Events
    click App "https://github.com/extinction-minijeux/client-open-source/blob/main/src/App.vue"
    click Router "https://github.com/extinction-minijeux/client-open-source/blob/main/src/router.js"
    click WSHandler "https://github.com/extinction-minijeux/client-open-source/blob/main/src/General/Reseau.vue"
    click MsgParser "https://github.com/extinction-minijeux/client-open-source/blob/main/src/General/ParseurMsg.js"
    click GameController "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Jeu.js"
    click AaaahSprites "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Aaaah/AaaahSpritesManager.js"
    click AaaahEvents "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Aaaah/AaaahEventHandler.js"
    click BoumEvents "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Bouboum/BoumEventHandler.js"
    click Chat "https://github.com/extinction-minijeux/client-open-source/blob/main/src/General/Chat.vue"
    click Forum "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Forum/Forum.vue"
    click Aaaah "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Aaaah/Aaaah.js"
    click Bouboum "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Bouboum/Bouboum.js"
    click PlayerMgmt "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Joueur/Joueur.js"
    click Profile "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Joueur/Profil.vue"
    click Auth "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Joueur/Autorisation.js"
    click ImageLoader "https://github.com/extinction-minijeux/client-open-source/blob/main/src/Jeu/Images.js"
    click Channel "https://github.com/extinction-minijeux/client-open-source/blob/main/src/General/Canal.js"
    click Team "https://github.com/extinction-minijeux/client-open-source/blob/main/src/General/Team.js"
    click EventSystem "https://github.com/extinction-minijeux/client-open-source/blob/main/src/General/Event.js"
    click Windows "https://github.com/extinction-minijeux/client-open-source/blob/main/src/components/Fenetre.vue"
    click PlayerList "https://github.com/extinction-minijeux/client-open-source/blob/main/src/components/ListeJoueurs.vue"
    click MessagingUI "https://github.com/extinction-minijeux/client-open-source/blob/main/src/components/Messagerie.vue"
    click Options "https://github.com/extinction-minijeux/client-open-source/blob/main/src/components/Options.vue"

    %% Styles
    classDef vue fill:#41B883,stroke:#35495E,color:white
    classDef ui fill:#FF61D8,stroke:#dark,color:white
    classDef feature fill:#FF9900,stroke:#dark,color:white
    classDef core fill:#6699CC,stroke:#dark,color:white
    classDef game fill:#66CC66,stroke:#dark,color:white
```
