Database

Singleton database for character factory lookup. Provides O(1) retrieval of CharacterFactory instances by CharacterID.

Architecture

spinner

Data Flow

spinner

Key Concepts

Concept
Description

Singleton asset

Auto-created at Resources/Character/Character Database via [SingletonSettings]

Hash key

Each CharacterFactory.GetHashCode() returns CharacterData.CharacterID

Auto-indexed

Populated automatically on OnEnable() from the ScriptableFactoryRegistry

Classes

Class
Description

Singleton factory lookup by character ID

See Also

Last updated