Registry System
The Registry System manages game content (items, abilities, enemies, etc.) with auto-discovery and serialization support.
Defining a Registry Entry
Section titled “Defining a Registry Entry”[Registry]public class ItemDefinition{ public string Id { get; set; } public string Name { get; set; } public int Value { get; set; }}Accessing the Registry
Section titled “Accessing the Registry”var item = Registry<ItemDefinition>.Get("sword");var all = Registry<ItemDefinition>.GetAll();Auto-Discovery
Section titled “Auto-Discovery”Ascendere scans for all classes marked with [Registry] at startup and registers them automatically. No manual registration needed.
Serialization
Section titled “Serialization”Registry entries are serializable by default, making them compatible with save/load and editor tooling.
Hot-Reloading
Section titled “Hot-Reloading”Changes to registry data can be reloaded at runtime without restarting the game, useful during development.