diff --git a/crates/bevy_ecs/src/system/commands.rs b/crates/bevy_ecs/src/system/commands.rs index d7336db107304..627b9e4e73531 100644 --- a/crates/bevy_ecs/src/system/commands.rs +++ b/crates/bevy_ecs/src/system/commands.rs @@ -284,8 +284,8 @@ impl<'a, 'b> EntityCommands<'a, 'b> { } #[derive(Debug)] -pub(crate) struct Spawn { - bundle: T, +pub struct Spawn { + pub bundle: T, } impl Command for Spawn @@ -297,12 +297,12 @@ where } } -pub(crate) struct SpawnBatch +pub struct SpawnBatch where I: IntoIterator, I::Item: Bundle, { - bundles_iter: I, + pub bundles_iter: I, } impl Command for SpawnBatch @@ -316,8 +316,8 @@ where } #[derive(Debug)] -pub(crate) struct Despawn { - entity: Entity, +pub struct Despawn { + pub entity: Entity, } impl Command for Despawn { @@ -328,9 +328,9 @@ impl Command for Despawn { } } -pub(crate) struct InsertBundle { - entity: Entity, - bundle: T, +pub struct InsertBundle { + pub entity: Entity, + pub bundle: T, } impl Command for InsertBundle @@ -343,9 +343,9 @@ where } #[derive(Debug)] -pub(crate) struct Insert { - entity: Entity, - component: T, +pub struct Insert { + pub entity: Entity, + pub component: T, } impl Command for Insert @@ -358,7 +358,7 @@ where } #[derive(Debug)] -pub(crate) struct Remove { +pub struct Remove { entity: Entity, phantom: PhantomData, } @@ -375,9 +375,9 @@ where } #[derive(Debug)] -pub(crate) struct RemoveBundle { - entity: Entity, - phantom: PhantomData, +pub struct RemoveBundle { + pub entity: Entity, + pub phantom: PhantomData, } impl Command for RemoveBundle @@ -393,8 +393,8 @@ where } } -pub(crate) struct InsertResource { - resource: T, +pub struct InsertResource { + pub resource: T, } impl Command for InsertResource { @@ -403,8 +403,8 @@ impl Command for InsertResource { } } -pub(crate) struct RemoveResource { - phantom: PhantomData, +pub struct RemoveResource { + pub phantom: PhantomData, } impl Command for RemoveResource {