# kyonkoyuuki/pyxenoverse architecture

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

- Interactive diagram: https://gitdiagram.com/kyonkoyuuki/pyxenoverse
- Repository: https://github.com/kyonkoyuuki/pyxenoverse

## Overview

pyxenoverse is a Python library for reading and writing Xenoverse game data formats, including gameplay-action, battle, character, skeleton, animation, and material data. Its runtime behavior is format-specific parsing and serialization, with typed records for structured sections; the sampled code also shows editing operations such as copying and adjusting animation or part data. The README provides no usage workflow or capability details. Edges below follow sampled calls or SOURCE INDEX references; unsampled format modules are represented at their supported directory paths, without inferred links.

Main entry points: [`pyxenoverse/gui/ctrl/multiple_selection_box.py`](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/multiple_selection_box.py) (Multi-selection control), [`pyxenoverse/bsa/entry.py`](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/entry.py) (BSA container), [`pyxenoverse/ean/animation.py`](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/animation.py) (Animation records), [`pyxenoverse/bac/sub_entry.py`](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bac/sub_entry.py) (BAC subentries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shared["Shared records"]
  node_base["Record utilities<br/>[__init__.py]"]
end

subgraph group_gameplay["Gameplay actions"]
  node_bac_container["BAC container<br/>[entry.py]"]
  node_bac_subentry["BAC subentries<br/>[sub_entry.py]"]
  node_bac_types["BAC action types"]
end

subgraph group_battle["Battle data"]
  node_bsa_container["BSA container<br/>[entry.py]"]
  node_bsa_subentry["BSA subentries<br/>[sub_entry.py]"]
  node_bsa_types["BSA event types"]
  node_bsa_collision["Collision records<br/>[collision.py]"]
  node_bsa_expiration["Expiration records<br/>[expiration.py]"]
  node_bdm["Damage records<br/>[type0.py]"]
end

subgraph group_character["Character assets"]
  node_bcs["Character configuration<br/>[__init__.py]"]
  node_bcs_parts["Character parts<br/>[part.py]"]
  node_bcs_part_sets["Part sets<br/>[part_set.py]"]
  node_bcs_physics["Part physics<br/>[physics.py]"]
  node_esk["Skeleton records<br/>[__init__.py]"]
  node_esk_bone["Bone records<br/>[bone.py]"]
end

subgraph group_animation["Animation and materials"]
  node_ean["Animation records<br/>[animation.py]"]
  node_ean_node["Animation nodes<br/>[animation_node.py]"]
  node_ean_keyframe["Keyframes<br/>[keyframe.py]"]
  node_ean_keyed["Keyframed animations"]
  node_emm["Material records<br/>[material.py]"]
  node_emm_parameter["Material parameters<br/>[parameter.py]"]
end

subgraph group_gui["GUI controls"]
  node_gui_multi["Multi-selection control"]
  node_gui_checks["Selection controls"]
  node_gui_radios["Radio controls"]
  node_gui_hex["Hex control<br/>[hex_ctrl.py]"]
  node_gui_dummy["Dummy control<br/>[dummy_ctrl.py]"]
end

node_bac_container -->|"loads subentries"| node_bac_subentry
node_bac_subentry -->|"dispatches types"| node_bac_types
node_bsa_container -->|"reads collisions"| node_bsa_collision
node_bsa_container -->|"reads expirations"| node_bsa_expiration
node_bsa_container -->|"reads subentries"| node_bsa_subentry
node_bsa_subentry -->|"dispatches types"| node_bsa_types
node_bdm -->|"inherits record"| node_base
node_bcs -->|"loads part sets"| node_bcs_part_sets
node_bcs_part_sets -->|"loads parts"| node_bcs_parts
node_bcs_parts -->|"reads physics"| node_bcs_physics
node_esk -->|"reads bones"| node_esk_bone
node_ean -->|"reads nodes"| node_ean_node
node_ean -->|"uses keyframes"| node_ean_keyframe
node_ean_node -->|"references keyframed data"| node_ean_keyed
node_emm -->|"uses parameters"| node_emm_parameter
node_gui_multi -->|"uses controls"| node_gui_checks
node_gui_multi -->|"uses controls"| node_gui_radios
node_gui_multi -->|"uses control"| node_gui_hex
node_gui_multi -->|"uses control"| node_gui_dummy

click node_base "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/__init__.py"
click node_bac_container "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bac/entry.py"
click node_bac_subentry "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bac/sub_entry.py"
click node_bac_types "https://github.com/kyonkoyuuki/pyxenoverse/tree/master/pyxenoverse/bac/types"
click node_bsa_container "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/entry.py"
click node_bsa_subentry "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/sub_entry.py"
click node_bsa_types "https://github.com/kyonkoyuuki/pyxenoverse/tree/master/pyxenoverse/bsa/types"
click node_bsa_collision "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/collision.py"
click node_bsa_expiration "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/expiration.py"
click node_bdm "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bdm/subentry/type0.py"
click node_bcs "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/__init__.py"
click node_bcs_parts "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/part.py"
click node_bcs_part_sets "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/part_set.py"
click node_bcs_physics "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/physics.py"
click node_esk "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/esk/__init__.py"
click node_esk_bone "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/esk/bone.py"
click node_ean "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/animation.py"
click node_ean_node "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/animation_node.py"
click node_ean_keyframe "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/keyframe.py"
click node_ean_keyed "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/keyframed_animation.py"
click node_emm "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/emm/material.py"
click node_emm_parameter "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/emm/parameter.py"
click node_gui_multi "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/multiple_selection_box.py"
click node_gui_checks "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/custom_check_box.py"
click node_gui_radios "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/custom_radio_box.py"
click node_gui_hex "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/hex_ctrl.py"
click node_gui_dummy "https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/dummy_ctrl.py"

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_base toneBlue
class node_bac_container,node_bac_subentry,node_bac_types toneAmber
class node_bsa_container,node_bsa_subentry,node_bsa_types,node_bsa_collision,node_bsa_expiration,node_bdm toneMint
class node_bcs,node_bcs_parts,node_bcs_part_sets,node_bcs_physics,node_esk,node_esk_bone toneRose
class node_ean,node_ean_node,node_ean_keyframe,node_ean_keyed,node_emm,node_emm_parameter toneIndigo
class node_gui_multi,node_gui_checks,node_gui_radios,node_gui_hex,node_gui_dummy toneTeal
```

## Components

### Shared records

- [Record utilities](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/__init__.py): `pyxenoverse/__init__.py`

### Gameplay actions

- [BAC container](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bac/entry.py): `pyxenoverse/bac/entry.py`
- [BAC subentries](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bac/sub_entry.py): `pyxenoverse/bac/sub_entry.py`
- [BAC action types](https://github.com/kyonkoyuuki/pyxenoverse/tree/master/pyxenoverse/bac/types): `pyxenoverse/bac/types`

### Battle data

- [BSA container](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/entry.py): `pyxenoverse/bsa/entry.py`
- [BSA subentries](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/sub_entry.py): `pyxenoverse/bsa/sub_entry.py`
- [BSA event types](https://github.com/kyonkoyuuki/pyxenoverse/tree/master/pyxenoverse/bsa/types): `pyxenoverse/bsa/types`
- [Collision records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/collision.py): `pyxenoverse/bsa/collision.py`
- [Expiration records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bsa/expiration.py): `pyxenoverse/bsa/expiration.py`
- [Damage records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bdm/subentry/type0.py): `pyxenoverse/bdm/subentry/type0.py`

### Character assets

- [Character configuration](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/__init__.py): `pyxenoverse/bcs/__init__.py`
- [Character parts](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/part.py): `pyxenoverse/bcs/part.py`
- [Part sets](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/part_set.py): `pyxenoverse/bcs/part_set.py`
- [Part physics](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/bcs/physics.py): `pyxenoverse/bcs/physics.py`
- [Skeleton records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/esk/__init__.py): `pyxenoverse/esk/__init__.py`
- [Bone records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/esk/bone.py): `pyxenoverse/esk/bone.py`

### Animation and materials

- [Animation records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/animation.py): `pyxenoverse/ean/animation.py`
- [Animation nodes](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/animation_node.py): `pyxenoverse/ean/animation_node.py`
- [Keyframes](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/keyframe.py): `pyxenoverse/ean/keyframe.py`
- [Keyframed animations](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/ean/keyframed_animation.py): `pyxenoverse/ean/keyframed_animation.py`
- [Material records](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/emm/material.py): `pyxenoverse/emm/material.py`
- [Material parameters](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/emm/parameter.py): `pyxenoverse/emm/parameter.py`

### GUI controls

- [Multi-selection control](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/multiple_selection_box.py): `pyxenoverse/gui/ctrl/multiple_selection_box.py`
- [Selection controls](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/custom_check_box.py): `pyxenoverse/gui/ctrl/custom_check_box.py`
- [Radio controls](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/custom_radio_box.py): `pyxenoverse/gui/ctrl/custom_radio_box.py`
- [Hex control](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/hex_ctrl.py): `pyxenoverse/gui/ctrl/hex_ctrl.py`
- [Dummy control](https://github.com/kyonkoyuuki/pyxenoverse/blob/master/pyxenoverse/gui/ctrl/dummy_ctrl.py): `pyxenoverse/gui/ctrl/dummy_ctrl.py`

## Connections

- BAC container → BAC subentries: loads subentries (evidence: `pyxenoverse/bac/__init__.py`)
- BAC subentries → BAC action types: dispatches types (evidence: `pyxenoverse/bac/sub_entry.py`)
- BSA container → Collision records: reads collisions (evidence: `pyxenoverse/bsa/entry.py`)
- BSA container → Expiration records: reads expirations (evidence: `pyxenoverse/bsa/entry.py`)
- BSA container → BSA subentries: reads subentries (evidence: `pyxenoverse/bsa/entry.py`)
- BSA subentries → BSA event types: dispatches types (evidence: `pyxenoverse/bsa/sub_entry.py`)
- Damage records → Record utilities: inherits record (evidence: `pyxenoverse/bdm/entry.py`)
- Character configuration → Part sets: loads part sets (evidence: `pyxenoverse/bcs/__init__.py`)
- Part sets → Character parts: loads parts (evidence: `pyxenoverse/bcs/part_set.py`)
- Character parts → Part physics: reads physics (evidence: `pyxenoverse/bcs/part.py`)
- Skeleton records → Bone records: reads bones (evidence: `pyxenoverse/esk/__init__.py`)
- Animation records → Animation nodes: reads nodes (evidence: `pyxenoverse/ean/animation.py`)
- Animation records → Keyframes: uses keyframes (evidence: `pyxenoverse/ean/animation.py`)
- Animation nodes → Keyframed animations: references keyframed data (evidence: `pyxenoverse/ean/animation_node.py`)
- Material records → Material parameters: uses parameters (evidence: `pyxenoverse/emm/material.py`)
- Multi-selection control → Selection controls: uses controls (evidence: `pyxenoverse/gui/ctrl/multiple_selection_box.py`)
- Multi-selection control → Radio controls: uses controls (evidence: `pyxenoverse/gui/ctrl/multiple_selection_box.py`)
- Multi-selection control → Hex control: uses control (evidence: `pyxenoverse/gui/ctrl/multiple_selection_box.py`)
- Multi-selection control → Dummy control: uses control (evidence: `pyxenoverse/gui/ctrl/multiple_selection_box.py`)
