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.

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.

Constants§

IS_RESOURCE
ComponentId of the IsResource component.

Traits§

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

Derive Macros§

Resource
Implement the Resource trait.