# astricunion/astro architecture

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

- Interactive diagram: https://gitdiagram.com/astricunion/astro
- Repository: https://github.com/astricunion/astro

## Overview

This appears to be an Astro character/content package for a Garry’s Mod/StarfallEx environment, alongside a Blender add-on for importing model rigs and exporting animation curves. The visible Blender workflow imports a model and builds a rig, or exports selected F-curves as Lua tween data. The Lua entities, effects, libraries, models, and audio are evident from the tree, but their runtime wiring is not shown; their relationships are therefore omitted rather than inferred.

Main entry points: [`animations/blender_plugin.py`](https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py) (Model Rig Import)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_blender["Blender Tools"]
  node_blender_addon["StarfallEx Blender Add-on<br/>[blender_plugin.py]"]
  node_curve_export["Curve Export<br/>[blender_plugin.py]"]
  node_model_import["Model Rig Import<br/>[blender_plugin.py]"]
end

subgraph group_characters["Character Content"]
  node_astro_scout["Astro Scout<br/>[astroscout.lua]"]
  node_astro_trooper["Astro Trooper<br/>[astrotrooper.lua]"]
  node_character_entities["Character Entities"]
end

subgraph group_runtime["Lua Runtime"]
  node_character_effects["Combat Effects"]
  node_runtime_libraries["Lua Libraries"]
  node_base_includes["Base Includes<br/>[baseincludes.lua]"]
end

subgraph group_assets["Character Assets"]
  node_scout_model["Scout Model<br/>[astroscout.lua]"]
  node_trooper_model["Trooper Model<br/>[astrotrooper.lua]"]
  node_character_sounds["Character Sounds"]
  node_animation_assets["Animation Assets"]
end

node_blender_ui(("Blender UI"))
node_tween_file["Lua Tween File"]
node_obj_file["OBJ Model"]
node_sexmdl_file["SEXMDL Rig Data"]

node_blender_ui -->|"registers tools"| node_blender_addon
node_blender_addon -->|"exposes"| node_curve_export
node_blender_addon -->|"exposes"| node_model_import
node_blender_ui -->|"invokes"| node_curve_export
node_curve_export -->|"writes Lua"| node_tween_file
node_blender_ui -->|"invokes"| node_model_import
node_model_import -->|"imports"| node_obj_file
node_model_import -->|"reads rig data"| node_sexmdl_file

click node_blender_addon "https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py"
click node_curve_export "https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py"
click node_model_import "https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py"
click node_astro_scout "https://github.com/astricunion/astro/blob/main/astroscout.lua"
click node_astro_trooper "https://github.com/astricunion/astro/blob/main/astrotrooper.lua"
click node_character_entities "https://github.com/astricunion/astro/tree/main/entities"
click node_character_effects "https://github.com/astricunion/astro/tree/main/effects"
click node_runtime_libraries "https://github.com/astricunion/astro/tree/main/libs"
click node_base_includes "https://github.com/astricunion/astro/blob/main/baseincludes.lua"
click node_scout_model "https://github.com/astricunion/astro/blob/main/models/astroscout.lua"
click node_trooper_model "https://github.com/astricunion/astro/blob/main/models/astrotrooper.lua"
click node_character_sounds "https://github.com/astricunion/astro/tree/main/sounds"
click node_animation_assets "https://github.com/astricunion/astro/tree/main/animations"

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_blender_addon,node_curve_export,node_model_import,node_blender_ui toneBlue
class node_astro_scout,node_astro_trooper,node_character_entities toneAmber
class node_character_effects,node_runtime_libraries,node_base_includes toneMint
class node_scout_model,node_trooper_model,node_character_sounds,node_animation_assets toneRose
class node_tween_file,node_obj_file,node_sexmdl_file toneIndigo
```

## Components

### Blender Tools

- [StarfallEx Blender Add-on](https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py): `animations/blender_plugin.py`
- [Curve Export](https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py): `animations/blender_plugin.py`
- [Model Rig Import](https://github.com/astricunion/astro/blob/main/animations/blender_plugin.py): `animations/blender_plugin.py`

### Character Content

- [Astro Scout](https://github.com/astricunion/astro/blob/main/astroscout.lua): `astroscout.lua`
- [Astro Trooper](https://github.com/astricunion/astro/blob/main/astrotrooper.lua): `astrotrooper.lua`
- [Character Entities](https://github.com/astricunion/astro/tree/main/entities): `entities`

### Lua Runtime

- [Combat Effects](https://github.com/astricunion/astro/tree/main/effects): `effects`
- [Lua Libraries](https://github.com/astricunion/astro/tree/main/libs): `libs`
- [Base Includes](https://github.com/astricunion/astro/blob/main/baseincludes.lua): `baseincludes.lua`

### Character Assets

- [Scout Model](https://github.com/astricunion/astro/blob/main/models/astroscout.lua): `models/astroscout.lua`
- [Trooper Model](https://github.com/astricunion/astro/blob/main/models/astrotrooper.lua): `models/astrotrooper.lua`
- [Character Sounds](https://github.com/astricunion/astro/tree/main/sounds): `sounds`
- [Animation Assets](https://github.com/astricunion/astro/tree/main/animations): `animations`

### Other components

- **Blender UI**
- **Lua Tween File**
- **OBJ Model**
- **SEXMDL Rig Data**

## Connections

- Blender UI → StarfallEx Blender Add-on: registers tools (evidence: `animations/blender_plugin.py`)
- StarfallEx Blender Add-on → Curve Export: exposes (evidence: `animations/blender_plugin.py`)
- StarfallEx Blender Add-on → Model Rig Import: exposes (evidence: `animations/blender_plugin.py`)
- Blender UI → Curve Export: invokes (evidence: `animations/blender_plugin.py`)
- Curve Export → Lua Tween File: writes Lua (evidence: `animations/blender_plugin.py`)
- Blender UI → Model Rig Import: invokes (evidence: `animations/blender_plugin.py`)
- Model Rig Import → OBJ Model: imports (evidence: `animations/blender_plugin.py`)
- Model Rig Import → SEXMDL Rig Data: reads rig data (evidence: `animations/blender_plugin.py`)
