Skip to main content

Module registry

Module registry 

Source
Expand description

Entity registry for creating entity instances.

Structs§

EntityEntry 🔒
Registry entry for an entity type.
EntityLoadRequest
Entity load request before the registry assigns a runtime ID.
EntityRegistry
Registry for entity factories and spawn rules.
EntityRegistryLock
Wrapper for the global entity registry that implements Deref.

Statics§

ENTITIES
Global entity registry.

Functions§

init_entities
Initializes the global entity registry, once the main registry is frozen.

Type Aliases§

EntityFactory
Factory function type for creating entities.
EntityLoadFactory
Factory function type for loading entities from disk.
SpawnRule 🔒
Spawn placement predicate of an entity type.