[−][src]Trait quill_prototype::Resource
A type that can be stored in State
as a "resource."
Resources are useful for plugin state that is not directly
related to a specific entity. For example, you might store
your plugin's configuration in a Resource
.
Use State::resource
and State::resource_mut
to access resources.
Similarly, use Setup::resource
to create a resource when your plugin
is loaded.
This trait is automatically implemented for most types.