1 2 3 4 5 6 7 8 9 10 11
# #[derive(Component)] # struct AudioPlayer; // this sucks # impl AudioPlayer { # fn new(_: Handle<Image>) -> Self { Self } # } # # #[derive(Component)] # struct PlaybackSettings; # impl PlaybackSettings { # const DESPAWN: Self = Self; # }