Skip to content

Commit 213882c

Browse files
committed
sdfgdgrtfthhretgr
1 parent b7d6d2a commit 213882c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/bevy_app/src/app_builder.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
CoreStage, PluginGroup, PluginGroupBuilder, StartupStage,
66
};
77
use bevy_ecs::{
8-
component::{Component, ComponentDescriptor},
8+
component::{Component, StorageType},
99
schedule::{
1010
RunOnce, Schedule, Stage, StageLabel, State, SystemDescriptor, SystemSet, SystemStage,
1111
},
@@ -314,8 +314,10 @@ impl AppBuilder {
314314
/// will result in an error.
315315
///
316316
/// See [World::register_component]
317-
pub fn register_component(&mut self, descriptor: ComponentDescriptor) -> &mut Self {
318-
self.world_mut().register_component(descriptor).unwrap();
317+
pub fn register_component<T: Component>(&mut self, storage_type: StorageType) -> &mut Self {
318+
self.world_mut()
319+
.register_component::<T>(storage_type)
320+
.unwrap();
319321
self
320322
}
321323

0 commit comments

Comments
 (0)