pub trait Resource: 'static {
// Required method
fn as_any(&self) -> &dyn Any;
// Provided method
fn update(&mut self) { ... }
}Expand description
Resources are objects that are not components and do not have any relation to entities They are a sort of blend between an entity and a system, they have their own update method that is called every frame like a system But unlike a system, they can be accessed by systems