# x753/lethal-company-mimics architecture

> Architecture diagram of the GitHub repository x753/lethal-company-mimics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/x753/lethal-company-mimics
- Repository: https://github.com/x753/lethal-company-mimics

## Overview

##### File structure
- Top‐level:
- CHANGELOG.md / LICENSE / README.md – documentation and license.
- Mimics.cs – the main C# source that defines the mimic NPC, hooks into spawn events, loads configuration, and registers content with the mod loader.
- mimicdoor/ – likely contains model, texture, animation, and sound assets for the mimic.
- Key patterns:
- Single plugin DLL
- Asset bundle alongside code
- Configuration loaded at runtime
- No separate frontend/backend – it’s an in-process extension of the host game.

##### Extract additional insights from README
- Assets and code are tightly coupled: code references models, textures, sound events.
- No external services or databases.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Host Game"
        GE["Game Engine"] 
        ML["Mod Loader"]
    end

    subgraph "Mimics Mod"
        MMA["Mimics Mod Assembly"] 
        AF["Asset Folder (mimicdoor)"]
        CF(("Config File"))
    end

    ML -->|"Load/Initialize"| MMA
    MMA -->|"Subscribe/Override"| GE
    MMA -->|"Read/Write Settings"| CF
    MMA -->|"Load Models/Textures/Sounds"| AF
    GE -->|"Spawn Event → DecideMimic()"| MMA

    click MMA "https://github.com/x753/lethal-company-mimics/blob/main/Mimics.cs"
    click AF "https://github.com/x753/lethal-company-mimics/tree/main/mimicdoor/"

    class GE,ML engine
    class MMA mod
    class AF assets
    class CF config

    classDef engine fill:#D3D3D3,stroke:#333,stroke-width:1px
    classDef mod fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef assets fill:#98FB98,stroke:#333,stroke-width:1px
    classDef config fill:#FFA500,stroke:#333,stroke-width:1px
```
