space_prefab 0.3.1

Subcrate for the space_editor crate. Contains the prefab systems and components.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::ext::*;

/// Entities with this component will spawn prefab on enter to [`EditorState::Game`] state
///
/// [`EditorState::Game`]: crate::EditorState::Game
#[derive(Component, Reflect, Clone)]
#[reflect(Component, Default)]
pub struct PlayerStart {
    pub prefab: String,
}

impl Default for PlayerStart {
    fn default() -> Self {
        Self {
            prefab: "".to_string(),
        }
    }
}