# leekiahn/phikozzlib architecture

> Architecture diagram of the GitHub repository leekiahn/phikozzlib, 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/leekiahn/phikozzlib
- Repository: https://github.com/leekiahn/phikozzlib

## Overview

PhikozzLib is a Unity utility library providing shared services and gameplay helpers. Its documented service setup starts with a Bootstrap configuration and service registration/initialization; consumers then use services for resources, UI, data, scenes, and other runtime capabilities. The graph preserves the README’s major service and utility branches. Arrows reflect calls or references visible in excerpts or the SOURCE INDEX; unsampled features are included without inferred connections.

Main entry points: [`Runtime/Core/SeviceLocator/ServiceLocator.cs`](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/SeviceLocator/ServiceLocator.cs) (Service locator), [`Runtime/Core/Addressable/AddressableManager.cs`](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Addressable/AddressableManager.cs) (Addressables), [`Runtime/Core/Audio/AudioManager.cs`](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Audio/AudioManager.cs) (Audio service), [`Runtime/Core/UI/UIManager.cs`](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/UI/UIManager.cs) (UI service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Service setup"]
  node_bootstrap["Bootstrapper<br/>[Bootstrapper.cs]"]
  node_config["Bootstrap config<br/>[BootstrapConfig.cs]"]
  node_locator["Service locator<br/>[ServiceLocator.cs]"]
end

subgraph group_runtime["Runtime services"]
  node_addressables["Addressables"]
  node_audio["Audio service<br/>[AudioManager.cs]"]
  node_ui["UI service<br/>[UIManager.cs]"]
  node_popup["Popup views<br/>[UIPopup.cs]"]
  node_data["Data service<br/>[DataManager.cs]"]
  node_container["Data container<br/>[DataContainer.cs]"]
  node_events["Event service<br/>[EventManager.cs]"]
  node_scene["Scene service"]
  node_effects["Effect service<br/>[EffectManager.cs]"]
  node_save["Save service<br/>[SaveManager.cs]"]
  node_time["Time service<br/>[TimeManager.cs]"]
  node_localization["Localization"]
  node_floating["Floating text"]
  node_pool["Pool service<br/>[PoolManager.cs]"]
end

subgraph group_gameplay["Gameplay utilities"]
  node_camera["Camera manager<br/>[CameraManager.cs]"]
  node_commands["Command history<br/>[CommandHistory.cs]"]
  node_state["State machine<br/>[StateMachine.cs]"]
  node_base_state["Base state<br/>[BaseState.cs]"]
  node_stat["Stat<br/>[Stat.cs]"]
  node_modifier["Stat modifier<br/>[StatModifier.cs]"]
  node_drag["Draggable<br/>[BaseDraggable.cs]"]
  node_feedback["UI feedback<br/>[PointerFeedback.cs]"]
  node_navigation["Navigation feedback"]
end

subgraph group_support["Shared support"]
  node_trackedpool["Tracked pool<br/>[TrackedPool.cs]"]
  node_observable["Observable value<br/>[ObservableValue.cs]"]
  node_devlog["Development log<br/>[DevLog.cs]"]
end

node_unity(("Unity project"))

node_unity -.->|"configures"| node_bootstrap
node_bootstrap -->|"reads"| node_config
node_audio -->|"registers"| node_locator
node_audio -->|"loads via"| node_addressables
node_audio -->|"pools with"| node_trackedpool
node_addressables -->|"registers"| node_locator
node_ui -->|"registers"| node_locator
node_ui -->|"loads via"| node_addressables
node_ui -->|"opens"| node_popup
node_data -->|"registers"| node_locator
node_data -->|"uses"| node_container
node_events -->|"registers"| node_locator
node_scene -->|"registers"| node_locator
node_effects -->|"registers"| node_locator
node_effects -->|"loads via"| node_addressables
node_effects -->|"pools with"| node_trackedpool
node_save -->|"registers"| node_locator
node_time -->|"registers"| node_locator
node_localization -->|"registers"| node_locator
node_floating -->|"registers"| node_locator
node_pool -->|"registers"| node_locator
node_pool -->|"builds"| node_trackedpool
node_commands -.-> node_state
node_state -->|"uses"| node_base_state
node_stat -->|"uses"| node_modifier
node_stat -->|"uses"| node_observable
node_modifier -->|"uses"| node_observable

click node_bootstrap "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Bootstrap/Bootstrapper.cs"
click node_config "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Bootstrap/BootstrapConfig.cs"
click node_locator "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/SeviceLocator/ServiceLocator.cs"
click node_addressables "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Addressable/AddressableManager.cs"
click node_audio "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Audio/AudioManager.cs"
click node_ui "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/UI/UIManager.cs"
click node_popup "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/UI/UIPopup.cs"
click node_data "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Data/DataManager.cs"
click node_container "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Data/DataContainer.cs"
click node_events "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Event/EventManager.cs"
click node_scene "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Scene/SceneLoadManager.cs"
click node_effects "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Effect/EffectManager.cs"
click node_save "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Save/SaveManager.cs"
click node_time "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Time/TimeManager.cs"
click node_localization "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Localization/LocalizationManager.cs"
click node_floating "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/FloatingText/FloatingTextManager.cs"
click node_pool "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Pooling/PoolManager.cs"
click node_trackedpool "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Pooling/TrackedPool.cs"
click node_camera "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Camera/CameraManager.cs"
click node_commands "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Command/CommandHistory.cs"
click node_state "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StateMachine/StateMachine.cs"
click node_base_state "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StateMachine/BaseState.cs"
click node_observable "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Observable/ObservableValue.cs"
click node_stat "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StatModifier/Stat.cs"
click node_modifier "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StatModifier/StatModifier.cs"
click node_drag "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Drag/BaseDraggable.cs"
click node_feedback "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Feedback/PointerFeedback.cs"
click node_navigation "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Feedback/NavigationFeedback.cs"
click node_devlog "https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Log/DevLog.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_bootstrap,node_config,node_locator toneBlue
class node_addressables,node_audio,node_ui,node_popup,node_data,node_container,node_events,node_scene,node_effects,node_save,node_time,node_localization,node_floating,node_pool toneAmber
class node_camera,node_commands,node_state,node_base_state,node_stat,node_modifier,node_drag,node_feedback,node_navigation toneMint
class node_trackedpool,node_observable,node_devlog toneRose
class node_unity toneIndigo
```

## Components

### Service setup

- [Bootstrapper](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Bootstrap/Bootstrapper.cs): `Runtime/Core/Bootstrap/Bootstrapper.cs`
- [Bootstrap config](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Bootstrap/BootstrapConfig.cs): `Runtime/Core/Bootstrap/BootstrapConfig.cs`
- [Service locator](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/SeviceLocator/ServiceLocator.cs): `Runtime/Core/SeviceLocator/ServiceLocator.cs`

### Runtime services

- [Addressables](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Addressable/AddressableManager.cs): `Runtime/Core/Addressable/AddressableManager.cs`
- [Audio service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Audio/AudioManager.cs): `Runtime/Core/Audio/AudioManager.cs`
- [UI service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/UI/UIManager.cs): `Runtime/Core/UI/UIManager.cs`
- [Popup views](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/UI/UIPopup.cs): `Runtime/Core/UI/UIPopup.cs`
- [Data service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Data/DataManager.cs): `Runtime/Core/Data/DataManager.cs`
- [Data container](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Data/DataContainer.cs): `Runtime/Core/Data/DataContainer.cs`
- [Event service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Event/EventManager.cs): `Runtime/Core/Event/EventManager.cs`
- [Scene service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Scene/SceneLoadManager.cs): `Runtime/Core/Scene/SceneLoadManager.cs`
- [Effect service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Effect/EffectManager.cs): `Runtime/Core/Effect/EffectManager.cs`
- [Save service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Save/SaveManager.cs): `Runtime/Core/Save/SaveManager.cs`
- [Time service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Time/TimeManager.cs): `Runtime/Core/Time/TimeManager.cs`
- [Localization](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Localization/LocalizationManager.cs): `Runtime/Core/Localization/LocalizationManager.cs`
- [Floating text](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/FloatingText/FloatingTextManager.cs): `Runtime/Core/FloatingText/FloatingTextManager.cs`
- [Pool service](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Pooling/PoolManager.cs): `Runtime/Core/Pooling/PoolManager.cs`

### Gameplay utilities

- [Camera manager](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Camera/CameraManager.cs): `Runtime/Camera/CameraManager.cs`
- [Command history](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Command/CommandHistory.cs): `Runtime/Command/CommandHistory.cs`
- [State machine](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StateMachine/StateMachine.cs): `Runtime/StateMachine/StateMachine.cs`
- [Base state](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StateMachine/BaseState.cs): `Runtime/StateMachine/BaseState.cs`
- [Stat](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StatModifier/Stat.cs): `Runtime/StatModifier/Stat.cs`
- [Stat modifier](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/StatModifier/StatModifier.cs): `Runtime/StatModifier/StatModifier.cs`
- [Draggable](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Drag/BaseDraggable.cs): `Runtime/Drag/BaseDraggable.cs`
- [UI feedback](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Feedback/PointerFeedback.cs): `Runtime/Feedback/PointerFeedback.cs`
- [Navigation feedback](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Feedback/NavigationFeedback.cs): `Runtime/Feedback/NavigationFeedback.cs`

### Shared support

- [Tracked pool](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Core/Pooling/TrackedPool.cs): `Runtime/Core/Pooling/TrackedPool.cs`
- [Observable value](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Observable/ObservableValue.cs): `Runtime/Observable/ObservableValue.cs`
- [Development log](https://github.com/leekiahn/phikozzlib/blob/main/Runtime/Log/DevLog.cs): `Runtime/Log/DevLog.cs`

### Other components

- **Unity project**

## Connections

- Unity project → Bootstrapper: configures
- Bootstrapper → Bootstrap config: reads (evidence: `Runtime/Core/Bootstrap/Bootstrapper.cs`)
- Audio service → Service locator: registers (evidence: `Runtime/Core/Audio/AudioManager.cs`)
- Audio service → Addressables: loads via (evidence: `Runtime/Core/Audio/AudioManager.cs`)
- Audio service → Tracked pool: pools with (evidence: `Runtime/Core/Audio/AudioManager.cs`)
- Addressables → Service locator: registers (evidence: `Runtime/Core/Addressable/AddressableManager.cs`)
- UI service → Service locator: registers (evidence: `Runtime/Core/UI/UIManager.cs`)
- UI service → Addressables: loads via (evidence: `Runtime/Core/UI/UIManager.cs`)
- UI service → Popup views: opens (evidence: `Runtime/Core/UI/UIManager.cs`)
- Data service → Service locator: registers (evidence: `Runtime/Core/Data/DataManager.cs`)
- Data service → Data container: uses (evidence: `Runtime/Core/Data/DataManager.cs`)
- Event service → Service locator: registers (evidence: `Runtime/Core/Event/EventManager.cs`)
- Scene service → Service locator: registers (evidence: `Runtime/Core/Scene/SceneLoadManager.cs`)
- Effect service → Service locator: registers (evidence: `Runtime/Core/Effect/EffectManager.cs`)
- Effect service → Addressables: loads via (evidence: `Runtime/Core/Effect/EffectManager.cs`)
- Effect service → Tracked pool: pools with (evidence: `Runtime/Core/Effect/EffectManager.cs`)
- Save service → Service locator: registers (evidence: `Runtime/Core/Save/SaveManager.cs`)
- Time service → Service locator: registers (evidence: `Runtime/Core/Time/TimeManager.cs`)
- Localization → Service locator: registers (evidence: `Runtime/Core/Localization/LocalizationManager.cs`)
- Floating text → Service locator: registers (evidence: `Runtime/Core/FloatingText/FloatingTextManager.cs`)
- Pool service → Service locator: registers (evidence: `Runtime/Core/Pooling/PoolManager.cs`)
- Pool service → Tracked pool: builds (evidence: `Runtime/Core/Pooling/PoolManager.cs`)
- Command history → State machine
- State machine → Base state: uses (evidence: `Runtime/StateMachine/StateMachine.cs`)
- Stat → Stat modifier: uses (evidence: `Runtime/StatModifier/Stat.cs`)
- Stat → Observable value: uses (evidence: `Runtime/StatModifier/Stat.cs`)
- Stat modifier → Observable value: uses (evidence: `Runtime/StatModifier/StatModifier.cs`)
