How peangoulvant/silentcontact works
This is a browser-based naval scenario and force-setup application with a procedurally generated hex map. The main workflow is to create a game, configure a mission, malus, and friendly ships, then view and interact with the map alongside the force panel. The graph follows the sampled React entry flow and documented imports. Several components are represented at subsystem level where their implementation was not excerpted; their internal behavior and any unshown connections are not inferred.
Main entry points: App.tsx App shell · ConfigurationPanel.tsx Configuration flow · current-game.store.ts Persisted game · HexCanvas.tsx Hex canvas
Components 23
Game setup
- App shell
src/App.tsx - Configuration flow
src/core/configuration/ConfigurationPanel.tsx - Mission picker
src/core/configuration/components/MissionPicker.tsx - Malus picker
src/core/configuration/components/MalusPicker.tsx - Ship picker
src/core/configuration/components/ShipsPicker.tsx - Ship cards
src/core/configuration/components/ShipsCard.tsx - Force panel
src/core/force/ForcePanel.tsx
Map experience
- Map state hook
src/core/map/hooks/useOceanMap.ts - Map view
src/core/map/components/MapView.tsx - Hex canvas
src/core/map/components/HexCanvas.tsx - Map interactions
src/core/map/hooks/mapEvents.ts - Map renderer
src/core/map/utils/drawMap.ts - Ship renderer
src/core/map/utils/drawShip.ts - Map generator
src/core/map/utils/generateMap.ts - Noise utility
src/core/map/utils/noise.ts
Application state
- Persisted game
src/core/store/current-game.store.ts - Map state
src/core/store/current-map.store.ts
Shared models and data
- Scenario and ship data
src/shared/data - Hex geometry
src/shared/data/map/hex.constants.ts - Game model
src/shared/domain/game/game.types.ts - Scenario models
src/shared/domain/scenario/scenario.types.ts - Terrain model
src/shared/domain/map/terrain.types.ts
Other components
- Player
Connections 29
- Player → Configuration flow: configures game
- App shell → Configuration flow: renders
src/App.tsx - App shell → Force panel: renders
src/App.tsx - App shell → Map view: renders
src/App.tsx - App shell → Map state hook: uses
src/App.tsx - App shell → Persisted game: reads and updates
src/App.tsx - App shell → Map generator: generates map
src/App.tsx - Configuration flow → Mission picker: renders
src/core/configuration/ConfigurationPanel.tsx - Configuration flow → Malus picker: renders
src/core/configuration/ConfigurationPanel.tsx - Configuration flow → Ship picker: renders
src/core/configuration/ConfigurationPanel.tsx - Configuration flow → Persisted game: reads and updates
src/core/configuration/ConfigurationPanel.tsx - Mission picker → Persisted game: updates selection
src/core/configuration/components/MissionPicker.tsx - Mission picker → Scenario and ship data: reads mission data
src/core/configuration/components/MissionPicker.tsx - Malus picker → Persisted game: updates selection
src/core/configuration/components/MalusPicker.tsx - Malus picker → Scenario and ship data: reads malus data
src/core/configuration/components/MalusPicker.tsx - Ship picker → Ship cards: renders
src/core/configuration/components/ShipsPicker.tsx - Ship picker → Persisted game: updates selection
src/core/configuration/components/ShipsPicker.tsx - Ship cards → Scenario and ship data: reads ship data
src/core/configuration/components/ShipsCard.tsx - Map state hook → Map generator: generates map
src/core/map/hooks/useOceanMap.ts - Map view → Hex canvas: renders
src/core/map/components/MapView.tsx - Map view → Ship renderer: uses ship renderer
src/core/map/components/MapView.tsx - Hex canvas → Map renderer: draws map
src/core/map/components/HexCanvas.tsx - Hex canvas → Map interactions: registers handlers
src/core/map/components/HexCanvas.tsx - Hex canvas → Map state: updates map
src/core/map/components/HexCanvas.tsx - Hex canvas → Hex geometry: uses geometry
src/core/map/components/HexCanvas.tsx - Map generator → Noise utility: uses noise
src/core/map/utils/generateMap.ts - Map generator → Scenario and ship data: uses terrain data
src/core/map/utils/generateMap.ts - Map generator → Terrain model: creates cells
src/core/map/utils/generateMap.ts - Persisted game → Game model: stores
src/core/store/current-game.store.ts