# lsjiloveu/scszr6bg868j architecture

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

- Interactive diagram: https://gitdiagram.com/lsjiloveu/scszr6bg868j
- Repository: https://github.com/lsjiloveu/scszr6bg868j
- Video tour (about a minute): https://gitdiagram.com/lsjiloveu/scszr6bg868j/video

## Overview

WarCore is a Unity foundation for a reskinnable top-down shooter and melee game, with a deterministic simulation core. Its apparent user workflow is player input through control and movement into combat and match simulation, then presentation of the resulting world. The repository also contains content and map tooling, terrain/navigation, and AI. The README establishes the product and deterministic core, but the supplied source excerpts do not show runtime call sites; dashed edges therefore mark inferred, unverified relationships rather than confirmed calls.

Main entry points: [`Assets/WarCore/Sim/Sim.cs`](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/Sim.cs) (Deterministic Simulation), [`Assets/WarCore/Presentation/Bridge/SimSession.cs`](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/SimSession.cs) (Simulation Session), [`Assets/WarCore/Content/Data/ContentLoader.cs`](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/Data/ContentLoader.cs) (Content Loader), [`Assets/WarCore/Presentation/Bridge/PlayerInput.cs`](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/PlayerInput.cs) (Player Input Bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Player Input"]
  node_inputbridge["Player Input Bridge<br/>[PlayerInput.cs]"]
  node_playercontrol["Player Control<br/>[PlayerControl.cs]"]
end

subgraph group_simulation["Simulation"]
  node_locomotion["Locomotion"]
  node_simcore["Deterministic Simulation<br/>[Sim.cs]"]
  node_entityworld[("Entity Store<br/>[EntityStore.cs]")]
  node_navigation["Grid Navigation<br/>[GridPathfinder.cs]"]
  node_gameplay["Gameplay Systems<br/>[GameplayWorld.cs]"]
end

subgraph group_battle["Battle Runtime"]
  node_combat["Combat Resolution"]
  node_battleflow["Match Systems<br/>[MatchSystem.cs]"]
  node_battleai["Battle AI<br/>[SimpleAiSystem.cs]"]
  node_capture["Capture and Respawn<br/>[CaptureSystem.cs]"]
end

subgraph group_content["Content and Maps"]
  node_contentloader["Content Loader<br/>[ContentLoader.cs]"]
  node_contentsections["Content Sections<br/>[SectionBuild.cs]"]
  node_mapformat["Map Read and Write<br/>[WcMapReader.cs]"]
  node_maptools["Map Editing and Bake<br/>[MapBake.cs]"]
end

subgraph group_presentation["Presentation"]
  node_worldassembly["World Assembly<br/>[WorldAssembly.cs]"]
  node_session["Simulation Session<br/>[SimSession.cs]"]
  node_view["World View<br/>[FrameView.cs]"]
  node_camera["Camera and HUD<br/>[IsoCamera.cs]"]
end

node_player(("Player"))

node_player -.->|"provides input"| node_inputbridge
node_inputbridge -.->|"forwards input"| node_playercontrol
node_playercontrol -.->|"issues movement"| node_locomotion
node_locomotion -.->|"updates simulation"| node_simcore
node_simcore -.->|"uses state"| node_entityworld
node_simcore -.->|"runs gameplay"| node_gameplay
node_simcore -.->|"runs combat"| node_combat
node_simcore -.->|"runs match"| node_battleflow
node_simcore -.->|"runs AI"| node_battleai
node_simcore -.->|"runs objectives"| node_capture
node_simcore -.->|"queries paths"| node_navigation
node_contentloader -.->|"builds content"| node_contentsections
node_maptools -.->|"bakes maps"| node_mapformat
node_contentloader -.->|"supplies content"| node_worldassembly
node_worldassembly -.->|"assembles session"| node_session
node_session -.->|"advances simulation"| node_simcore
node_session -.->|"provides frame"| node_view
node_view -.->|"renders view"| node_camera

click node_inputbridge "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/PlayerInput.cs"
click node_playercontrol "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Control/PlayerControl.cs"
click node_locomotion "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Interim/InterimLocomotion.cs"
click node_simcore "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/Sim.cs"
click node_entityworld "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/EntityStore.cs"
click node_navigation "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/GridPathfinder.cs"
click node_gameplay "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/GameplayWorld.cs"
click node_combat "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Combat/CombatSystem.Resolve.cs"
click node_battleflow "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Battle/MatchSystem.cs"
click node_battleai "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Battle/SimpleAiSystem.cs"
click node_capture "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Battle/CaptureSystem.cs"
click node_contentloader "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/Data/ContentLoader.cs"
click node_contentsections "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/Data/Sections/SectionBuild.cs"
click node_mapformat "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/WcMapReader.cs"
click node_maptools "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/MapTools/MapBake.cs"
click node_worldassembly "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/Features/WorldAssembly.cs"
click node_session "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/SimSession.cs"
click node_view "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/FrameView.cs"
click node_camera "https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Camera/IsoCamera.cs"

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_inputbridge,node_playercontrol toneBlue
class node_locomotion,node_simcore,node_entityworld,node_navigation,node_gameplay toneAmber
class node_combat,node_battleflow,node_battleai,node_capture toneMint
class node_contentloader,node_contentsections,node_mapformat,node_maptools toneRose
class node_worldassembly,node_session,node_view,node_camera,node_player toneIndigo
```

## Components

### Player Input

- [Player Input Bridge](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/PlayerInput.cs): `Assets/WarCore/Presentation/Bridge/PlayerInput.cs`
- [Player Control](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Control/PlayerControl.cs): `Assets/WarCore/Control/PlayerControl.cs`

### Simulation

- [Locomotion](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Interim/InterimLocomotion.cs): `Assets/WarCore/Interim/InterimLocomotion.cs`
- [Deterministic Simulation](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/Sim.cs): `Assets/WarCore/Sim/Sim.cs`
- [Entity Store](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/EntityStore.cs): `Assets/WarCore/Sim/EntityStore.cs`
- [Grid Navigation](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/GridPathfinder.cs): `Assets/WarCore/Sim/GridPathfinder.cs`
- [Gameplay Systems](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Sim/GameplayWorld.cs): `Assets/WarCore/Sim/GameplayWorld.cs`

### Battle Runtime

- [Combat Resolution](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Combat/CombatSystem.Resolve.cs): `Assets/WarCore/Combat/CombatSystem.Resolve.cs`
- [Match Systems](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Battle/MatchSystem.cs): `Assets/WarCore/Battle/MatchSystem.cs`
- [Battle AI](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Battle/SimpleAiSystem.cs): `Assets/WarCore/Battle/SimpleAiSystem.cs`
- [Capture and Respawn](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Battle/CaptureSystem.cs): `Assets/WarCore/Battle/CaptureSystem.cs`

### Content and Maps

- [Content Loader](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/Data/ContentLoader.cs): `Assets/WarCore/Content/Data/ContentLoader.cs`
- [Content Sections](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/Data/Sections/SectionBuild.cs): `Assets/WarCore/Content/Data/Sections/SectionBuild.cs`
- [Map Read and Write](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/WcMapReader.cs): `Assets/WarCore/Content/WcMapReader.cs`
- [Map Editing and Bake](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Content/MapTools/MapBake.cs): `Assets/WarCore/Content/MapTools/MapBake.cs`

### Presentation

- [World Assembly](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/Features/WorldAssembly.cs): `Assets/WarCore/Presentation/Bridge/Features/WorldAssembly.cs`
- [Simulation Session](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/SimSession.cs): `Assets/WarCore/Presentation/Bridge/SimSession.cs`
- [World View](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Bridge/FrameView.cs): `Assets/WarCore/Presentation/Bridge/FrameView.cs`
- [Camera and HUD](https://github.com/lsjiloveu/scszr6bg868j/blob/main/Assets/WarCore/Presentation/Camera/IsoCamera.cs): `Assets/WarCore/Presentation/Camera/IsoCamera.cs`

### Other components

- **Player**

## Connections

- Player → Player Input Bridge: provides input
- Player Input Bridge → Player Control: forwards input
- Player Control → Locomotion: issues movement
- Locomotion → Deterministic Simulation: updates simulation
- Deterministic Simulation → Entity Store: uses state
- Deterministic Simulation → Gameplay Systems: runs gameplay
- Deterministic Simulation → Combat Resolution: runs combat
- Deterministic Simulation → Match Systems: runs match
- Deterministic Simulation → Battle AI: runs AI
- Deterministic Simulation → Capture and Respawn: runs objectives
- Deterministic Simulation → Grid Navigation: queries paths
- Content Loader → Content Sections: builds content
- Map Editing and Bake → Map Read and Write: bakes maps
- Content Loader → World Assembly: supplies content
- World Assembly → Simulation Session: assembles session
- Simulation Session → Deterministic Simulation: advances simulation
- Simulation Session → World View: provides frame
- World View → Camera and HUD: renders view
