IStaticDataRepository

This service stores and provides access to EntityStaticData and maintains the relationship between Component types and their corresponding Component Static Data types.

Entity Static Data is populated from the IStaticDataFactory and indexed by ID for efficient lookup. The repository also discovers Component implementations and builds mappings that allow systems to resolve a runtime Component type from its Static Data type and vice versa.

Methods

Method IEntityStaticData? GetEntityStaticData(string id)
Description Returns the Entity Static Data associated with specified id. Returns null if no Entity Static Data with that ID exists.
Method Type? GetComponentTypeForStaticData(Type staticDataType)
Description Returns the Component interface Type associated with specified Component Static Data Type. Returns null if no matching Component type is registered.
Method Type? GetStaticDataTypeForComponent(Type componentType)
Description Returns the Component Static Data Type associated with specified Component Type. Returns null if no matching Static Data type is registered.