# theredhawksings/material architecture

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

- Interactive diagram: https://gitdiagram.com/theredhawksings/material
- Repository: https://github.com/theredhawksings/material

## Overview

This is an Unreal Engine game project with a custom material-themed gameplay layer and separate combat, platforming, and side-scrolling variants. A player controller accepts input and controls or respawns its variant’s character; the custom controller forwards clicks and Escape to the main character. The source index identifies transformation, temperature, and wire as central gameplay modules, but their runtime interactions and most puzzle-device behavior were not excerpted. The graph therefore preserves those areas without asserting unverified links.

Main entry points: [`Source/material/materialPlayerController.cpp`](https://github.com/theredhawksings/material/blob/master/Source/material/materialPlayerController.cpp) (Main Controller), [`Source/material/Variant_Combat/CombatPlayerController.cpp`](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/CombatPlayerController.cpp) (Combat Controller), [`Source/material/Variant_Platforming/PlatformingPlayerController.cpp`](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Platforming/PlatformingPlayerController.cpp) (Platform Controller), [`Source/material/Variant_SideScrolling/SideScrollingPlayerController.cpp`](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingPlayerController.cpp) (Side-Scroll Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_main["Main Game"]
  node_player["Main Controller"]
  node_character["Main Character"]
end

subgraph group_puzzle["Material Gameplay"]
  node_transform["Transformation Actor"]
  node_temperature["Temperature<br/>[Temperature.h]"]
  node_wire["Wire<br/>[Wire.cpp]"]
  node_puzzleactors["Puzzle Actors"]
end

subgraph group_combat["Combat Variant"]
  node_combatcontroller["Combat Controller"]
  node_combatcharacter["Combat Character"]
  node_combatdamage["Damageable Objects"]
  node_combatattacks["Attack Interface<br/>[CombatAttacker.h]"]
  node_combatai["Combat AI"]
end

subgraph group_platform["Platforming Variant"]
  node_platformcontroller["Platform Controller"]
  node_platformcharacter["Platform Character"]
end

subgraph group_side["Side-Scrolling Variant"]
  node_sidecontroller["Side-Scroll Controller"]
  node_sidecharacter["Side-Scroll Character"]
  node_sidecamera["Side-Scroll Camera"]
  node_sideai["Side-Scroll AI"]
end

node_playeractor(("Player"))

node_playeractor -->|"provides input"| node_player
node_player -->|"forwards input"| node_character
node_combatcontroller -->|"respawns"| node_combatcharacter
node_platformcontroller -->|"respawns"| node_platformcharacter
node_sidecontroller -->|"respawns"| node_sidecharacter

click node_player "https://github.com/theredhawksings/material/blob/master/Source/material/materialPlayerController.cpp"
click node_character "https://github.com/theredhawksings/material/blob/master/Source/material/materialCharacter.cpp"
click node_transform "https://github.com/theredhawksings/material/blob/master/Source/material/Transformation_actor.cpp"
click node_temperature "https://github.com/theredhawksings/material/blob/master/Source/material/Temperature.h"
click node_wire "https://github.com/theredhawksings/material/blob/master/Source/material/Wire.cpp"
click node_puzzleactors "https://github.com/theredhawksings/material/tree/master/Source/material"
click node_combatcontroller "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/CombatPlayerController.cpp"
click node_combatcharacter "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/CombatCharacter.cpp"
click node_combatdamage "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/Gameplay/CombatDamageableBox.cpp"
click node_combatattacks "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/Interfaces/CombatAttacker.h"
click node_combatai "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/AI/CombatAIController.cpp"
click node_platformcontroller "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Platforming/PlatformingPlayerController.cpp"
click node_platformcharacter "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Platforming/PlatformingCharacter.cpp"
click node_sidecontroller "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingPlayerController.cpp"
click node_sidecharacter "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingCharacter.cpp"
click node_sidecamera "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingCameraManager.cpp"
click node_sideai "https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/AI/SideScrollingAIController.cpp"

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_player,node_character toneBlue
class node_transform,node_temperature,node_wire,node_puzzleactors toneAmber
class node_combatcontroller,node_combatcharacter,node_combatdamage,node_combatattacks,node_combatai toneMint
class node_platformcontroller,node_platformcharacter toneRose
class node_sidecontroller,node_sidecharacter,node_sidecamera,node_sideai,node_playeractor toneIndigo
```

## Components

### Main Game

- [Main Controller](https://github.com/theredhawksings/material/blob/master/Source/material/materialPlayerController.cpp): `Source/material/materialPlayerController.cpp`
- [Main Character](https://github.com/theredhawksings/material/blob/master/Source/material/materialCharacter.cpp): `Source/material/materialCharacter.cpp`

### Material Gameplay

- [Transformation Actor](https://github.com/theredhawksings/material/blob/master/Source/material/Transformation_actor.cpp): `Source/material/Transformation_actor.cpp`
- [Temperature](https://github.com/theredhawksings/material/blob/master/Source/material/Temperature.h): `Source/material/Temperature.h`
- [Wire](https://github.com/theredhawksings/material/blob/master/Source/material/Wire.cpp): `Source/material/Wire.cpp`
- [Puzzle Actors](https://github.com/theredhawksings/material/tree/master/Source/material): `Source/material`

### Combat Variant

- [Combat Controller](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/CombatPlayerController.cpp): `Source/material/Variant_Combat/CombatPlayerController.cpp`
- [Combat Character](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/CombatCharacter.cpp): `Source/material/Variant_Combat/CombatCharacter.cpp`
- [Damageable Objects](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/Gameplay/CombatDamageableBox.cpp): `Source/material/Variant_Combat/Gameplay/CombatDamageableBox.cpp`
- [Attack Interface](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/Interfaces/CombatAttacker.h): `Source/material/Variant_Combat/Interfaces/CombatAttacker.h`
- [Combat AI](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Combat/AI/CombatAIController.cpp): `Source/material/Variant_Combat/AI/CombatAIController.cpp`

### Platforming Variant

- [Platform Controller](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Platforming/PlatformingPlayerController.cpp): `Source/material/Variant_Platforming/PlatformingPlayerController.cpp`
- [Platform Character](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_Platforming/PlatformingCharacter.cpp): `Source/material/Variant_Platforming/PlatformingCharacter.cpp`

### Side-Scrolling Variant

- [Side-Scroll Controller](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingPlayerController.cpp): `Source/material/Variant_SideScrolling/SideScrollingPlayerController.cpp`
- [Side-Scroll Character](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingCharacter.cpp): `Source/material/Variant_SideScrolling/SideScrollingCharacter.cpp`
- [Side-Scroll Camera](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/SideScrollingCameraManager.cpp): `Source/material/Variant_SideScrolling/SideScrollingCameraManager.cpp`
- [Side-Scroll AI](https://github.com/theredhawksings/material/blob/master/Source/material/Variant_SideScrolling/AI/SideScrollingAIController.cpp): `Source/material/Variant_SideScrolling/AI/SideScrollingAIController.cpp`

### Other components

- **Player**

## Connections

- Player → Main Controller: provides input (evidence: `Source/material/materialPlayerController.cpp`)
- Main Controller → Main Character: forwards input (evidence: `Source/material/materialPlayerController.cpp`)
- Combat Controller → Combat Character: respawns (evidence: `Source/material/Variant_Combat/CombatPlayerController.cpp`)
- Platform Controller → Platform Character: respawns (evidence: `Source/material/Variant_Platforming/PlatformingPlayerController.cpp`)
- Side-Scroll Controller → Side-Scroll Character: respawns (evidence: `Source/material/Variant_SideScrolling/SideScrollingPlayerController.cpp`)
