Skip to content

Registry System

The Registry System manages game content (items, abilities, enemies, etc.) with auto-discovery and serialization support.

[Registry]
public class ItemDefinition
{
public string Id { get; set; }
public string Name { get; set; }
public int Value { get; set; }
}
var item = Registry<ItemDefinition>.Get("sword");
var all = Registry<ItemDefinition>.GetAll();

Ascendere scans for all classes marked with [Registry] at startup and registers them automatically. No manual registration needed.

Registry entries are serializable by default, making them compatible with save/load and editor tooling.

Changes to registry data can be reloaded at runtime without restarting the game, useful during development.