Skip to main content

Module manager

Module manager 

Source
Expand description

World-level entity ownership and lookup.

Steel deliberately uses a simpler loaded/simulated split than vanilla’s entity section manager. The manager owns runtime entity lookup regardless of chunk load state; chunks are still the persistence boundary, and only full simulated chunks tick entities.

ModulesΒ§

benchmark_support
Fixtures for benchmarking the world entity manager without a live world.
entries πŸ”’
Slot storage for entity entries, so queries index a Vec instead of hashing each candidate.
spatial_query πŸ”’
Ordered query hits gathered from already sorted spatial cells.

StructsΒ§

ChunkEntityLoadResult
Entity changes produced when a chunk becomes loaded.
ChunkEntityUnloadStart
Entity changes produced when a chunk starts unloading.
EntityEntry πŸ”’
EntityLifecycleChanges
Entity lifecycle changes caused by manager membership or visibility updates.
EntityMoveUpdate
Section/chunk membership update caused by a committed entity move.
EntityQueryOrder πŸ”’
EntitySpatialCell πŸ”’
EntitySpatialCellBounds πŸ”’
EntityTickList πŸ”’
IndexedOrderedEntityIds πŸ”’
Append-ordered IDs with indexed unlinking for large lifecycle lists.
IndexedOrderedEntityIdsIter πŸ”’
ManagerState πŸ”’
OrderedEntityIdNode πŸ”’
OrderedEntityIds πŸ”’
RetainedSpatialCells πŸ”’
Bounds an index update can leave in place when an entity’s old and new cells overlap.
SpatialCellEntities πŸ”’
TickContext πŸ”’
Pre-tick manager state resolved under one state lock.
UnsavedEntityReport
Saveable entity that could not be persisted by a chunk save pass.
WorldEntityManager
Central world entity manager.

EnumsΒ§

AddEntityError
Error returned when adding an entity to the runtime world fails.
EntityCollisionCandidates πŸ”’
Candidate set used by vanilla movement’s entity-shape collision query.
EntityMoveError
Error returned when a live entity move cannot be committed.
EntityOwnership
Whether the manager owns persistence for an entity.
EntityVisibility
Entity visibility for a chunk column.

ConstantsΒ§

ENTITY_SPATIAL_CELL_OFFSET πŸ”’
ENTITY_SPATIAL_CELL_SIZE πŸ”’
INLINE_QUERY_CAPACITY πŸ”’
MAX_DIRECT_SPATIAL_CELL_PROBES πŸ”’