# habinsong0311-web/bossraid architecture

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

- Interactive diagram: https://gitdiagram.com/habinsong0311-web/bossraid
- Repository: https://github.com/habinsong0311-web/bossraid

## Overview

BossRaid is a Unity co-op boss-raid game for up to four players. The documented loop runs from login and room matching through party preparation, town upgrades, a telegraphed boss fight, and reward-based return to town. The tree identifies Dragon boss and skill scripts, but no source excerpts were provided; most gameplay stages are therefore represented at the broad Assets directory level, and their connections follow README statements only. Photon PUN is documented as the networking stack; specific in-game network calls cannot be verified here.

Main entry points: [`Assets`](https://github.com/habinsong0311-web/bossraid/tree/main/Assets) (Town), [`Assets/1.Habin/Dragon/DragonBoss.cs`](https://github.com/habinsong0311-web/bossraid/blob/main/Assets/1.Habin/Dragon/DragonBoss.cs) (Boss Raid), [`Assets/Photon/PhotonUnityNetworking`](https://github.com/habinsong0311-web/bossraid/tree/main/Assets/Photon/PhotonUnityNetworking) (Photon PUN), [`Assets/1.Habin/Dragon/CircleTelegraph.cs`](https://github.com/habinsong0311-web/bossraid/blob/main/Assets/1.Habin/Dragon/CircleTelegraph.cs) (Attack Telegraphs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and Party"]
  node_login["Login"]
  node_room_search["Room Search"]
  node_room["Room Setup"]
  node_character_select["Character Selection"]
  node_ready["Ready Check"]
  node_photon["Photon PUN"]
end

subgraph group_prepare["Town Preparation"]
  node_town["Town"]
  node_skill_upgrade["Skill Upgrade"]
  node_item_shop["Item Purchase"]
end

subgraph group_combat["Raid Combat"]
  node_raid["Boss Raid<br/>[DragonBoss.cs]"]
  node_telegraphs["Attack Telegraphs<br/>[CircleTelegraph.cs]"]
  node_dragon_skills["Dragon Skills<br/>[DragonSkill]"]
end

subgraph group_outcome["Raid Outcome"]
  node_result["Raid Result"]
  node_points["Victory Points"]
end

node_player(("Player"))

node_player -->|"enters"| node_login
node_login -->|"proceeds to"| node_room_search
node_room_search -->|"finds room"| node_room
node_room -->|"selects character"| node_character_select
node_character_select -->|"prepares"| node_ready
node_ready -->|"starts game"| node_town
node_town -->|"upgrades skills"| node_skill_upgrade
node_town -->|"buys items"| node_item_shop
node_town -->|"enters raid"| node_raid
node_raid -->|"shows ranges"| node_telegraphs
node_raid -.->|"uses skills"| node_dragon_skills
node_raid -->|"determines outcome"| node_result
node_result -->|"awards on victory"| node_points
node_result -->|"returns to town"| node_town
node_room_search -.->|"networking stack"| node_photon

click node_login "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_room_search "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_room "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_character_select "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_ready "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_town "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_skill_upgrade "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_item_shop "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_raid "https://github.com/habinsong0311-web/bossraid/blob/main/Assets/1.Habin/Dragon/DragonBoss.cs"
click node_telegraphs "https://github.com/habinsong0311-web/bossraid/blob/main/Assets/1.Habin/Dragon/CircleTelegraph.cs"
click node_dragon_skills "https://github.com/habinsong0311-web/bossraid/tree/main/Assets/1.Habin/Dragon/DragonSkill"
click node_result "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_points "https://github.com/habinsong0311-web/bossraid/tree/main/Assets"
click node_photon "https://github.com/habinsong0311-web/bossraid/tree/main/Assets/Photon/PhotonUnityNetworking"

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_login,node_room_search,node_room,node_character_select,node_ready,node_photon toneBlue
class node_town,node_skill_upgrade,node_item_shop toneAmber
class node_raid,node_telegraphs,node_dragon_skills toneMint
class node_result,node_points toneRose
class node_player toneIndigo
```

## Components

### Entry and Party

- [Login](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Room Search](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Room Setup](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Character Selection](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Ready Check](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Photon PUN](https://github.com/habinsong0311-web/bossraid/tree/main/Assets/Photon/PhotonUnityNetworking): `Assets/Photon/PhotonUnityNetworking`

### Town Preparation

- [Town](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Skill Upgrade](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Item Purchase](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`

### Raid Combat

- [Boss Raid](https://github.com/habinsong0311-web/bossraid/blob/main/Assets/1.Habin/Dragon/DragonBoss.cs): `Assets/1.Habin/Dragon/DragonBoss.cs`
- [Attack Telegraphs](https://github.com/habinsong0311-web/bossraid/blob/main/Assets/1.Habin/Dragon/CircleTelegraph.cs): `Assets/1.Habin/Dragon/CircleTelegraph.cs`
- [Dragon Skills](https://github.com/habinsong0311-web/bossraid/tree/main/Assets/1.Habin/Dragon/DragonSkill): `Assets/1.Habin/Dragon/DragonSkill`

### Raid Outcome

- [Raid Result](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`
- [Victory Points](https://github.com/habinsong0311-web/bossraid/tree/main/Assets): `Assets`

### Other components

- **Player**

## Connections

- Player → Login: enters (evidence: `README.md`)
- Login → Room Search: proceeds to (evidence: `README.md`)
- Room Search → Room Setup: finds room (evidence: `README.md`)
- Room Setup → Character Selection: selects character (evidence: `README.md`)
- Character Selection → Ready Check: prepares (evidence: `README.md`)
- Ready Check → Town: starts game (evidence: `README.md`)
- Town → Skill Upgrade: upgrades skills (evidence: `README.md`)
- Town → Item Purchase: buys items (evidence: `README.md`)
- Town → Boss Raid: enters raid (evidence: `README.md`)
- Boss Raid → Attack Telegraphs: shows ranges (evidence: `README.md`)
- Boss Raid → Dragon Skills: uses skills
- Boss Raid → Raid Result: determines outcome (evidence: `README.md`)
- Raid Result → Victory Points: awards on victory (evidence: `README.md`)
- Raid Result → Town: returns to town (evidence: `README.md`)
- Room Search → Photon PUN: networking stack
