I have the following asset:
#[derive(Debug, Deserialize, Clone, TypeUuid, TypePath)]
#[uuid = "5c97b24f-a49b-423f-9f9e-eaa19ab94027"]
pub struct StatsAsset {
pub health: u32,
pub attack: u32,
pub defense: u32,
}
It's used by Character:
#[derive(Bundle, Default)]
pub struct CharacterBundle {
// Main components
pub name: Name,
pub movable: Movable,
pub sheet: SpriteSheetBundle,
pub animation_indices: AnimationIndices,
pub animation_timer: AnimationTimer,
// Stats components
pub stats: Handle<StatsAsset>,