1
2
3
4
5
6
7
8
9
10
11
12
13
14
use bevy::prelude::*;

// Tag component used to tag entities added on the splash screen
#[derive(Component, Debug, Default, Clone, PartialEq)]
pub struct SplashScreen;

// Tag component used to tag entities added on the splash screen
#[derive(Component, Debug, Default, Clone, PartialEq)]
pub struct SplashUi;
// Newtype to use a `Timer` for this screen as a resource
#[derive(Resource, Deref, DerefMut)]
pub struct SplashTimer(pub Timer);