# all-of-us-mods/crewmeleon-redrawn architecture

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

- Interactive diagram: https://gitdiagram.com/all-of-us-mods/crewmeleon-redrawn
- Repository: https://github.com/all-of-us-mods/crewmeleon-redrawn

## Overview

Crewmeleon-Redrawn is an Among Us game-mode mod centered on Chameleon hide-and-seek, with hiders who camouflage by painting and seekers who hunt them. The main flow is round setup and role assignment, timed hiding/seeking, player actions, then death or infection updates. Painting has its own brush, canvas, color-picking, zoom, and stroke-sync responsibilities; seeker combat and spectating are separate gameplay branches. The excerpts show several direct links, while other subsystem connections are supported only by the source index, so uncertain relationships are omitted or marked dashed.

Main entry points: [`Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs`](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs) (Game mode), [`Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs`](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs) (Round manager), [`Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs`](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs) (Player canvas), [`Crewmeleon-Redrawn/UI/BrushPanel.cs`](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/UI/BrushPanel.cs) (Brush controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_round["Round and roles"]
  node_mode["Game mode"]
  node_manager["Round manager"]
  node_options["Mode options"]
  node_gameplay_options["Gameplay settings<br/>[GameplayOptions.cs]"]
  node_intro["Round intro<br/>[ChameleonIntro.cs]"]
  node_timers["Round timers<br/>[ChameleonTimer.cs]"]
  node_taunt_timer["Taunt timer<br/>[TauntTimer.cs]"]
  node_tracker["Player tracker<br/>[PlayerTracker.cs]"]
  node_hider["Hider role<br/>[HiderRole.cs]"]
  node_seeker["Seeker role<br/>[SeekerRole.cs]"]
end

subgraph group_paint["Painting and UI"]
  node_canvas["Player canvas"]
  node_brush["Brush settings<br/>[BrushSettings.cs]"]
  node_stroke["Paint strokes<br/>[PaintStroke.cs]"]
  node_paint_modifier["Painting state"]
  node_color_picker["Color picker<br/>[PickColorButton.cs]"]
  node_brush_ui["Brush controls<br/>[BrushPanel.cs]"]
  node_zoom["Zoom camera"]
end

subgraph group_combat["Hunt and spectate"]
  node_shotgun["Shotgun action<br/>[ShotgunRpc.cs]"]
  node_splatter["Paint splatter"]
  node_spectating["Spectating"]
end

subgraph group_runtime["Mod runtime and sync"]
  node_plugin["Plugin setup"]
  node_assets["Game assets"]
  node_rpc["RPC messages<br/>[CrewmeleonRpc.cs]"]
  node_stroke_rpc["Stroke sync<br/>[RpcSendStroke.cs]"]
  node_undo_rpc["Undo sync<br/>[RpcUndoStroke.cs]"]
end

node_player(("Players"))

node_player -.->|"plays"| node_mode
node_mode -->|"starts"| node_manager
node_mode -.->|"shows"| node_intro
node_mode -->|"assigns"| node_hider
node_mode -->|"assigns"| node_seeker
node_manager -->|"updates"| node_timers
node_manager -->|"updates"| node_taunt_timer
node_manager -->|"updates"| node_tracker
node_manager -->|"reads"| node_options
node_options -->|"exposes"| node_gameplay_options
node_hider -->|"enables"| node_canvas
node_player -->|"selects color"| node_color_picker
node_color_picker -->|"sets color"| node_brush
node_brush_ui -->|"edits"| node_brush
node_brush_ui -->|"uses"| node_color_picker
node_canvas -->|"reads"| node_brush
node_canvas -->|"records"| node_stroke
node_canvas -->|"sends"| node_stroke_rpc
node_canvas -->|"sends"| node_undo_rpc
node_paint_modifier -->|"toggles display"| node_zoom
node_paint_modifier -->|"resyncs transform"| node_player
node_shotgun -->|"creates"| node_splatter
node_shotgun -->|"uses"| node_rpc
node_player -.->|"spectates"| node_spectating
node_plugin -->|"initializes"| node_brush_ui

click node_plugin "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/CrewmeleonPlugin.cs"
click node_assets "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/CrewmeleonAssets.cs"
click node_mode "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs"
click node_manager "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs"
click node_options "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonOptions.cs"
click node_gameplay_options "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Options/GameplayOptions.cs"
click node_intro "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonIntro.cs"
click node_timers "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonTimer.cs"
click node_taunt_timer "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/TauntTimer.cs"
click node_tracker "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/PlayerTracker.cs"
click node_hider "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Roles/HiderRole.cs"
click node_seeker "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Roles/SeekerRole.cs"
click node_canvas "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs"
click node_brush "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/BrushSettings.cs"
click node_stroke "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/PaintStroke.cs"
click node_paint_modifier "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Modifiers/PaintingModifier.cs"
click node_color_picker "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Buttons/Hider/PickColorButton.cs"
click node_brush_ui "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/UI/BrushPanel.cs"
click node_zoom "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/ZoomCameraController.cs"
click node_shotgun "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/ShotgunRpc.cs"
click node_splatter "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/SplatterComponent.cs"
click node_spectating "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Modifiers/SpectatingModifier.cs"
click node_rpc "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/CrewmeleonRpc.cs"
click node_stroke_rpc "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/RpcSendStroke.cs"
click node_undo_rpc "https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/RpcUndoStroke.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_mode,node_manager,node_options,node_gameplay_options,node_intro,node_timers,node_taunt_timer,node_tracker,node_hider,node_seeker toneBlue
class node_canvas,node_brush,node_stroke,node_paint_modifier,node_color_picker,node_brush_ui,node_zoom toneAmber
class node_shotgun,node_splatter,node_spectating toneMint
class node_plugin,node_assets,node_rpc,node_stroke_rpc,node_undo_rpc toneRose
class node_player toneIndigo
```

## Components

### Round and roles

- [Game mode](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs): `Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs`
- [Round manager](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs): `Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs`
- [Mode options](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonOptions.cs): `Crewmeleon-Redrawn/GameMode/ChameleonOptions.cs`
- [Gameplay settings](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Options/GameplayOptions.cs): `Crewmeleon-Redrawn/Options/GameplayOptions.cs`
- [Round intro](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonIntro.cs): `Crewmeleon-Redrawn/GameMode/ChameleonIntro.cs`
- [Round timers](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/ChameleonTimer.cs): `Crewmeleon-Redrawn/GameMode/ChameleonTimer.cs`
- [Taunt timer](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/TauntTimer.cs): `Crewmeleon-Redrawn/GameMode/TauntTimer.cs`
- [Player tracker](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/GameMode/PlayerTracker.cs): `Crewmeleon-Redrawn/GameMode/PlayerTracker.cs`
- [Hider role](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Roles/HiderRole.cs): `Crewmeleon-Redrawn/Roles/HiderRole.cs`
- [Seeker role](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Roles/SeekerRole.cs): `Crewmeleon-Redrawn/Roles/SeekerRole.cs`

### Painting and UI

- [Player canvas](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs): `Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs`
- [Brush settings](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/BrushSettings.cs): `Crewmeleon-Redrawn/Components/BrushSettings.cs`
- [Paint strokes](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/PaintStroke.cs): `Crewmeleon-Redrawn/Components/PaintStroke.cs`
- [Painting state](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Modifiers/PaintingModifier.cs): `Crewmeleon-Redrawn/Modifiers/PaintingModifier.cs`
- [Color picker](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Buttons/Hider/PickColorButton.cs): `Crewmeleon-Redrawn/Buttons/Hider/PickColorButton.cs`
- [Brush controls](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/UI/BrushPanel.cs): `Crewmeleon-Redrawn/UI/BrushPanel.cs`
- [Zoom camera](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/ZoomCameraController.cs): `Crewmeleon-Redrawn/Components/ZoomCameraController.cs`

### Hunt and spectate

- [Shotgun action](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/ShotgunRpc.cs): `Crewmeleon-Redrawn/Networking/ShotgunRpc.cs`
- [Paint splatter](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Components/SplatterComponent.cs): `Crewmeleon-Redrawn/Components/SplatterComponent.cs`
- [Spectating](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Modifiers/SpectatingModifier.cs): `Crewmeleon-Redrawn/Modifiers/SpectatingModifier.cs`

### Mod runtime and sync

- [Plugin setup](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/CrewmeleonPlugin.cs): `Crewmeleon-Redrawn/CrewmeleonPlugin.cs`
- [Game assets](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/CrewmeleonAssets.cs): `Crewmeleon-Redrawn/CrewmeleonAssets.cs`
- [RPC messages](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/CrewmeleonRpc.cs): `Crewmeleon-Redrawn/Networking/CrewmeleonRpc.cs`
- [Stroke sync](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/RpcSendStroke.cs): `Crewmeleon-Redrawn/Networking/RpcSendStroke.cs`
- [Undo sync](https://github.com/all-of-us-mods/crewmeleon-redrawn/blob/main/Crewmeleon-Redrawn/Networking/RpcUndoStroke.cs): `Crewmeleon-Redrawn/Networking/RpcUndoStroke.cs`

### Other components

- **Players**

## Connections

- Players → Game mode: plays
- Game mode → Round manager: starts (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs`)
- Game mode → Round intro: shows (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs`)
- Game mode → Hider role: assigns (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs`)
- Game mode → Seeker role: assigns (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameMode.cs`)
- Round manager → Round timers: updates (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs`)
- Round manager → Taunt timer: updates (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs`)
- Round manager → Player tracker: updates (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs`)
- Round manager → Mode options: reads (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonGameModeManager.cs`)
- Mode options → Gameplay settings: exposes (evidence: `Crewmeleon-Redrawn/GameMode/ChameleonOptions.cs`)
- Hider role → Player canvas: enables (evidence: `Crewmeleon-Redrawn/Roles/HiderRole.cs`)
- Players → Color picker: selects color (evidence: `Crewmeleon-Redrawn/Buttons/Hider/PickColorButton.cs`)
- Color picker → Brush settings: sets color (evidence: `Crewmeleon-Redrawn/Buttons/Hider/PickColorButton.cs`)
- Brush controls → Brush settings: edits (evidence: `Crewmeleon-Redrawn/UI/BrushPanel.cs`)
- Brush controls → Color picker: uses (evidence: `Crewmeleon-Redrawn/UI/BrushPanel.cs`)
- Player canvas → Brush settings: reads (evidence: `Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs`)
- Player canvas → Paint strokes: records (evidence: `Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs`)
- Player canvas → Stroke sync: sends (evidence: `Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs`)
- Player canvas → Undo sync: sends (evidence: `Crewmeleon-Redrawn/Components/PlayerCanvasComponent.cs`)
- Painting state → Zoom camera: toggles display (evidence: `Crewmeleon-Redrawn/Modifiers/PaintingModifier.cs`)
- Painting state → Players: resyncs transform (evidence: `Crewmeleon-Redrawn/Modifiers/PaintingModifier.cs`)
- Shotgun action → Paint splatter: creates (evidence: `Crewmeleon-Redrawn/Networking/ShotgunRpc.cs`)
- Shotgun action → RPC messages: uses (evidence: `Crewmeleon-Redrawn/Networking/ShotgunRpc.cs`)
- Players → Spectating: spectates
- Plugin setup → Brush controls: initializes (evidence: `Crewmeleon-Redrawn/CrewmeleonPlugin.cs`)
