# mobivislabs/lightweightammunition architecture

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

- Interactive diagram: https://gitdiagram.com/mobivislabs/lightweightammunition
- Repository: https://github.com/mobivislabs/lightweightammunition

## Overview

Lightweight Ammunition is a RimWorld content mod: it defines ammunition items, their category and recipes, and supplies patches for core turrets and named mod families. The tree also includes ammunition textures. The README contains only the product title, and no source excerpts were provided, so the graph shows the game’s likely loading relationship as unverified and does not infer dependencies among definitions or patches.

Main entry points: [`1.6/Defs/ThingDefs_Items/AmmoItems.xml`](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/ThingDefs_Items/AmmoItems.xml) (Ammo items), [`1.6/Defs/ThingCategoryDefs/AmmoCategories.xml`](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/ThingCategoryDefs/AmmoCategories.xml) (Ammo categories), [`1.6/Defs/RecipeDefs/AmmoRecipes.xml`](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/RecipeDefs/AmmoRecipes.xml) (Ammo recipes), [`1.6/Patches/Patch_Core_Turrets.xml`](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Patches/Patch_Core_Turrets.xml) (Core turret patch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ammo["Ammunition content"]
  node_items["Ammo items<br/>[AmmoItems.xml]"]
  node_categories["Ammo categories<br/>[AmmoCategories.xml]"]
  node_recipes["Ammo recipes<br/>[AmmoRecipes.xml]"]
end

subgraph group_compat["Compatibility patches"]
  node_corepatch["Core turret patch"]
  node_modpatches["Mod patches<br/>[Mods]"]
  node_rimthunder["RimThunder patches<br/>[RimThunder]"]
  node_vve["VVE patches<br/>[VVE]"]
end

subgraph group_assets["Visual assets"]
  node_textures["Ammo textures"]
end

node_game(("RimWorld"))

node_game -.->|"loads &#40;unverified&#41;"| node_items
node_game -.->|"loads &#40;unverified&#41;"| node_categories
node_game -.->|"loads &#40;unverified&#41;"| node_recipes
node_game -.->|"applies &#40;unverified&#41;"| node_corepatch
node_game -.->|"applies &#40;unverified&#41;"| node_modpatches
node_game -.->|"applies &#40;unverified&#41;"| node_rimthunder
node_game -.->|"applies &#40;unverified&#41;"| node_vve

click node_items "https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/ThingDefs_Items/AmmoItems.xml"
click node_categories "https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/ThingCategoryDefs/AmmoCategories.xml"
click node_recipes "https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/RecipeDefs/AmmoRecipes.xml"
click node_corepatch "https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Patches/Patch_Core_Turrets.xml"
click node_modpatches "https://github.com/mobivislabs/lightweightammunition/tree/main/1.6/Patches/Mods"
click node_rimthunder "https://github.com/mobivislabs/lightweightammunition/tree/main/1.6/Patches/RimThunder"
click node_vve "https://github.com/mobivislabs/lightweightammunition/tree/main/1.6/Patches/VVE"
click node_textures "https://github.com/mobivislabs/lightweightammunition/tree/main/Textures/Things/Ammunition"

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_items,node_categories,node_recipes toneBlue
class node_corepatch,node_modpatches,node_rimthunder,node_vve toneAmber
class node_textures toneMint
class node_game toneIndigo
```

## Components

### Ammunition content

- [Ammo items](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/ThingDefs_Items/AmmoItems.xml): `1.6/Defs/ThingDefs_Items/AmmoItems.xml`
- [Ammo categories](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/ThingCategoryDefs/AmmoCategories.xml): `1.6/Defs/ThingCategoryDefs/AmmoCategories.xml`
- [Ammo recipes](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Defs/RecipeDefs/AmmoRecipes.xml): `1.6/Defs/RecipeDefs/AmmoRecipes.xml`

### Compatibility patches

- [Core turret patch](https://github.com/mobivislabs/lightweightammunition/blob/main/1.6/Patches/Patch_Core_Turrets.xml): `1.6/Patches/Patch_Core_Turrets.xml`
- [Mod patches](https://github.com/mobivislabs/lightweightammunition/tree/main/1.6/Patches/Mods): `1.6/Patches/Mods`
- [RimThunder patches](https://github.com/mobivislabs/lightweightammunition/tree/main/1.6/Patches/RimThunder): `1.6/Patches/RimThunder`
- [VVE patches](https://github.com/mobivislabs/lightweightammunition/tree/main/1.6/Patches/VVE): `1.6/Patches/VVE`

### Visual assets

- [Ammo textures](https://github.com/mobivislabs/lightweightammunition/tree/main/Textures/Things/Ammunition): `Textures/Things/Ammunition`

### Other components

- **RimWorld**

## Connections

- RimWorld → Ammo items: loads (unverified)
- RimWorld → Ammo categories: loads (unverified)
- RimWorld → Ammo recipes: loads (unverified)
- RimWorld → Core turret patch: applies (unverified)
- RimWorld → Mod patches: applies (unverified)
- RimWorld → RimThunder patches: applies (unverified)
- RimWorld → VVE patches: applies (unverified)
