# fabianzettl/calciom architecture

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

- Interactive diagram: https://gitdiagram.com/fabianzettl/calciom
- Repository: https://github.com/fabianzettl/calciom

## Overview

CalcioM is a football-management game whose career simulation runs on a Football Life world, while FL27 serves as an optional match engine. The manager navigates the desktop interface, advances a career day by day, and manages the squad, club, competitions, and wider football world; on match day, matches can be simulated in CalcioM or played in FL27. The graph preserves the README’s major capabilities, but many source modules were not sampled, so their internal call paths are not asserted.

Main entry points: [`src/game.rs`](https://github.com/fabianzettl/calciom/blob/main/src/game.rs) (Career simulation), [`src/pages`](https://github.com/fabianzettl/calciom/tree/main/src/pages) (Manager pages), [`src/world.rs`](https://github.com/fabianzettl/calciom/blob/main/src/world.rs) (World simulation), [`src/fl27.rs`](https://github.com/fabianzettl/calciom/blob/main/src/fl27.rs) (FL27 integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Manager interface"]
  node_application["Application entry<br/>[main.rs]"]
  node_manager_pages["Manager pages"]
  node_ui_toolkit["UI toolkit<br/>[ui.rs]"]
end

subgraph group_career["Career management"]
  node_career_sim["Career simulation<br/>[game.rs]"]
  node_squad_people["Players and people<br/>[mensch.rs]"]
  node_development["Player development<br/>[entwicklung.rs]"]
  node_training["Training plans<br/>[trainingsplan.rs]"]
  node_market["Transfers and deals<br/>[verhandlung.rs]"]
  node_scouting["Scouting<br/>[scouting.rs]"]
  node_club_operations["Club operations<br/>[vereinsfuehrung.rs]"]
  node_inbox_media["Inbox and media<br/>[postkarten.rs]"]
end

subgraph group_football["Football world"]
  node_football_world["World simulation<br/>[world.rs]"]
  node_league_rules["League rules<br/>[ligaregeln.rs]"]
  node_cups["Cup competitions<br/>[cups.rs]"]
  node_statistics["Match statistics<br/>[statistik.rs]"]
end

subgraph group_match["Match engine integration"]
  node_matchday["Matchday experience<br/>[spieltag.rs]"]
  node_match_live["Live match<br/>[livespiel.rs]"]
  node_fl27_adapter["FL27 integration<br/>[fl27.rs]"]
  node_pes_database[("Football database<br/>[pesdb.rs]")]
end

subgraph group_foundation["Shared foundations"]
  node_language_content["Language content<br/>[inhalt.rs]"]
  node_game_rules["Game rules data<br/>[regeln.rs]"]
  node_calendar["Career calendar<br/>[date.rs]"]
end

node_manager(("Manager"))

node_manager -->|"starts"| node_application
node_application -->|"routes pages"| node_manager_pages
node_manager_pages -->|"shows career"| node_career_sim
node_manager_pages -->|"draws with"| node_ui_toolkit
node_career_sim -->|"advances career"| node_football_world
node_career_sim -->|"writes squads"| node_fl27_adapter
node_football_world -->|"uses rules"| node_league_rules
node_football_world -->|"runs competitions"| node_cups
node_manager_pages -->|"opens matchday"| node_matchday
node_matchday -->|"simulates match"| node_match_live
node_matchday -->|"starts FL27"| node_fl27_adapter
node_fl27_adapter -->|"updates database"| node_pes_database
node_fl27_adapter -->|"reads match stats"| node_statistics
node_career_sim -->|"develops players"| node_development
node_career_sim -->|"applies training"| node_training
node_career_sim -->|"handles negotiations"| node_market
node_career_sim -->|"manages scouting"| node_scouting
node_career_sim -.->|"manages club"| node_club_operations
node_career_sim -.->|"generates messages"| node_inbox_media
node_career_sim -->|"steps through days"| node_calendar
node_career_sim -->|"updates people"| node_squad_people
node_football_world -->|"imports world data"| node_pes_database
node_career_sim -->|"reads rules"| node_game_rules
node_manager_pages -->|"shows translated text"| node_language_content

click node_application "https://github.com/fabianzettl/calciom/blob/main/src/main.rs"
click node_manager_pages "https://github.com/fabianzettl/calciom/tree/main/src/pages"
click node_ui_toolkit "https://github.com/fabianzettl/calciom/blob/main/src/ui.rs"
click node_career_sim "https://github.com/fabianzettl/calciom/blob/main/src/game.rs"
click node_squad_people "https://github.com/fabianzettl/calciom/blob/main/src/mensch.rs"
click node_development "https://github.com/fabianzettl/calciom/blob/main/src/entwicklung.rs"
click node_training "https://github.com/fabianzettl/calciom/blob/main/src/trainingsplan.rs"
click node_market "https://github.com/fabianzettl/calciom/blob/main/src/verhandlung.rs"
click node_scouting "https://github.com/fabianzettl/calciom/blob/main/src/scouting.rs"
click node_club_operations "https://github.com/fabianzettl/calciom/blob/main/src/vereinsfuehrung.rs"
click node_inbox_media "https://github.com/fabianzettl/calciom/blob/main/src/postkarten.rs"
click node_football_world "https://github.com/fabianzettl/calciom/blob/main/src/world.rs"
click node_league_rules "https://github.com/fabianzettl/calciom/blob/main/src/ligaregeln.rs"
click node_cups "https://github.com/fabianzettl/calciom/blob/main/src/cups.rs"
click node_statistics "https://github.com/fabianzettl/calciom/blob/main/src/statistik.rs"
click node_matchday "https://github.com/fabianzettl/calciom/blob/main/src/pages/spieltag.rs"
click node_match_live "https://github.com/fabianzettl/calciom/blob/main/src/livespiel.rs"
click node_fl27_adapter "https://github.com/fabianzettl/calciom/blob/main/src/fl27.rs"
click node_pes_database "https://github.com/fabianzettl/calciom/blob/main/src/pesdb.rs"
click node_language_content "https://github.com/fabianzettl/calciom/blob/main/src/inhalt.rs"
click node_game_rules "https://github.com/fabianzettl/calciom/blob/main/src/regeln.rs"
click node_calendar "https://github.com/fabianzettl/calciom/blob/main/src/date.rs"

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_application,node_manager_pages,node_ui_toolkit toneBlue
class node_career_sim,node_squad_people,node_development,node_training,node_market,node_scouting,node_club_operations,node_inbox_media toneAmber
class node_football_world,node_league_rules,node_cups,node_statistics toneMint
class node_matchday,node_match_live,node_fl27_adapter,node_pes_database toneRose
class node_language_content,node_game_rules,node_calendar,node_manager toneIndigo
```

## Components

### Manager interface

- [Application entry](https://github.com/fabianzettl/calciom/blob/main/src/main.rs): `src/main.rs`
- [Manager pages](https://github.com/fabianzettl/calciom/tree/main/src/pages): `src/pages`
- [UI toolkit](https://github.com/fabianzettl/calciom/blob/main/src/ui.rs): `src/ui.rs`

### Career management

- [Career simulation](https://github.com/fabianzettl/calciom/blob/main/src/game.rs): `src/game.rs`
- [Players and people](https://github.com/fabianzettl/calciom/blob/main/src/mensch.rs): `src/mensch.rs`
- [Player development](https://github.com/fabianzettl/calciom/blob/main/src/entwicklung.rs): `src/entwicklung.rs`
- [Training plans](https://github.com/fabianzettl/calciom/blob/main/src/trainingsplan.rs): `src/trainingsplan.rs`
- [Transfers and deals](https://github.com/fabianzettl/calciom/blob/main/src/verhandlung.rs): `src/verhandlung.rs`
- [Scouting](https://github.com/fabianzettl/calciom/blob/main/src/scouting.rs): `src/scouting.rs`
- [Club operations](https://github.com/fabianzettl/calciom/blob/main/src/vereinsfuehrung.rs): `src/vereinsfuehrung.rs`
- [Inbox and media](https://github.com/fabianzettl/calciom/blob/main/src/postkarten.rs): `src/postkarten.rs`

### Football world

- [World simulation](https://github.com/fabianzettl/calciom/blob/main/src/world.rs): `src/world.rs`
- [League rules](https://github.com/fabianzettl/calciom/blob/main/src/ligaregeln.rs): `src/ligaregeln.rs`
- [Cup competitions](https://github.com/fabianzettl/calciom/blob/main/src/cups.rs): `src/cups.rs`
- [Match statistics](https://github.com/fabianzettl/calciom/blob/main/src/statistik.rs): `src/statistik.rs`

### Match engine integration

- [Matchday experience](https://github.com/fabianzettl/calciom/blob/main/src/pages/spieltag.rs): `src/pages/spieltag.rs`
- [Live match](https://github.com/fabianzettl/calciom/blob/main/src/livespiel.rs): `src/livespiel.rs`
- [FL27 integration](https://github.com/fabianzettl/calciom/blob/main/src/fl27.rs): `src/fl27.rs`
- [Football database](https://github.com/fabianzettl/calciom/blob/main/src/pesdb.rs): `src/pesdb.rs`

### Shared foundations

- [Language content](https://github.com/fabianzettl/calciom/blob/main/src/inhalt.rs): `src/inhalt.rs`
- [Game rules data](https://github.com/fabianzettl/calciom/blob/main/src/regeln.rs): `src/regeln.rs`
- [Career calendar](https://github.com/fabianzettl/calciom/blob/main/src/date.rs): `src/date.rs`

### Other components

- **Manager**

## Connections

- Manager → Application entry: starts
- Application entry → Manager pages: routes pages (evidence: `src/main.rs`)
- Manager pages → Career simulation: shows career (evidence: `src/pages/mod.rs`)
- Manager pages → UI toolkit: draws with (evidence: `src/pages/mod.rs`)
- Career simulation → World simulation: advances career (evidence: `src/game.rs`)
- Career simulation → FL27 integration: writes squads (evidence: `src/game.rs`)
- World simulation → League rules: uses rules (evidence: `src/world.rs`)
- World simulation → Cup competitions: runs competitions (evidence: `src/world.rs`)
- Manager pages → Matchday experience: opens matchday (evidence: `src/pages/mod.rs`)
- Matchday experience → Live match: simulates match (evidence: `src/pages/spieltag.rs`)
- Matchday experience → FL27 integration: starts FL27 (evidence: `src/pages/spieltag.rs`)
- FL27 integration → Football database: updates database (evidence: `src/fl27.rs`)
- FL27 integration → Match statistics: reads match stats
- Career simulation → Player development: develops players (evidence: `src/game.rs`)
- Career simulation → Training plans: applies training (evidence: `src/game.rs`)
- Career simulation → Transfers and deals: handles negotiations (evidence: `src/game.rs`)
- Career simulation → Scouting: manages scouting (evidence: `src/game.rs`)
- Career simulation → Club operations: manages club
- Career simulation → Inbox and media: generates messages
- Career simulation → Career calendar: steps through days (evidence: `src/game.rs`)
- Career simulation → Players and people: updates people (evidence: `src/game.rs`)
- World simulation → Football database: imports world data (evidence: `src/world.rs`)
- Career simulation → Game rules data: reads rules (evidence: `src/game.rs`)
- Manager pages → Language content: shows translated text (evidence: `src/pages/mod.rs`)
