Skip to main content

Module resource

Module resource 

Source
Expand description

Resources are unique, singleton-like data types that can be accessed from systems and stored in the World.

Re-exports§

pub use crate::component::IS_RESOURCE;

Structs§

IsResource
A marker component for entities that have a Resource component.
ResourceEntities
A cache that links each ComponentId from a resource to the corresponding entity.

Traits§

Resource
A type that can be inserted into a World as a singleton.

Derive Macros§

Resource
Implement the Resource trait.