1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Definitions for [`Resource`] reflection.
//!
//! # Architecture
//!
//! See the module doc for [`reflect::component`](`crate::reflect::component`).
use crate::;
use ;
/// A struct that marks a reflected [`Resource`] of a type.
///
/// This is struct does not provide any functionality.
/// It implies the existence of a reflected [`Component`](crate::component::Component) of the same type,
/// which is meant to be used instead.
///
/// ```rust,ignore
/// #[derive(Resource, Reflect)]
/// #[reflect(Resource)]
/// struct ResA;
///
/// // is the same as:
///
/// #[derive(Resource, Component, Reflect)]
/// #[reflect(Resource, Component)]
/// struct ResA;
/// ```
///
/// A [`ReflectResource`] for type `T` can be obtained via
/// [`bevy_reflect::TypeRegistration::data`].
;