# safetydays/safetydaysbma architecture

> Architecture diagram of the GitHub repository safetydays/safetydaysbma, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/safetydays/safetydaysbma
- Repository: https://github.com/safetydays/safetydaysbma

## Overview

safetydaysBMA is a Unity app that presents a virtual fire alarm system (BMA). The README documents a complete DIN-standard simulation and two training modes: peer-to-peer trainer mode and solo mode with predefined scenarios. The repository tree shows Unity scenes, scripts, models, and a scenario database, but no source excerpts were provided; therefore, internal calls and data flow cannot be verified. The graph captures documented capabilities only, without asserting how scenes, scripts, or storage connect.

Main entry points: [`Assets/Scenes`](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scenes) (Virtual BMA), [`Assets/Scripts`](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts) (DIN simulation), [`Assets/Scripts/Controllers`](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts/Controllers) (Trainer P2P), [`Assets/Scripts/Models`](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts/Models) (Solo scenarios)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_system["BMA app"]
  node_app["Virtual BMA"]
  node_din["DIN simulation"]
end

subgraph group_training["Training modes"]
  node_p2p["Trainer P2P"]
  node_solo["Solo scenarios"]
end

node_trainee(("Trainee"))

node_trainee -->|"uses"| node_app
node_app -->|"simulates"| node_din
node_app -->|"offers"| node_p2p
node_app -->|"offers"| node_solo

click node_app "https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scenes"
click node_din "https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts"
click node_p2p "https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts/Controllers"
click node_solo "https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts/Models"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_din toneBlue
class node_p2p,node_solo toneAmber
class node_trainee toneIndigo
```

## Components

### BMA app

- [Virtual BMA](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scenes): `Assets/Scenes`
- [DIN simulation](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts): `Assets/Scripts`

### Training modes

- [Trainer P2P](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts/Controllers): `Assets/Scripts/Controllers`
- [Solo scenarios](https://github.com/safetydays/safetydaysbma/tree/master/Assets/Scripts/Models): `Assets/Scripts/Models`

### Other components

- **Trainee**

## Connections

- Trainee → Virtual BMA: uses (evidence: `README.md`)
- Virtual BMA → DIN simulation: simulates (evidence: `README.md`)
- Virtual BMA → Trainer P2P: offers (evidence: `README.md`)
- Virtual BMA → Solo scenarios: offers (evidence: `README.md`)
