Skip to content

Commit

Permalink
sdfgdgrtfthhretgr
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Apr 4, 2021
1 parent b7d6d2a commit 213882c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/bevy_app/src/app_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
CoreStage, PluginGroup, PluginGroupBuilder, StartupStage,
};
use bevy_ecs::{
component::{Component, ComponentDescriptor},
component::{Component, StorageType},
schedule::{
RunOnce, Schedule, Stage, StageLabel, State, SystemDescriptor, SystemSet, SystemStage,
},
Expand Down Expand Up @@ -314,8 +314,10 @@ impl AppBuilder {
/// will result in an error.
///
/// See [World::register_component]
pub fn register_component(&mut self, descriptor: ComponentDescriptor) -> &mut Self {
self.world_mut().register_component(descriptor).unwrap();
pub fn register_component<T: Component>(&mut self, storage_type: StorageType) -> &mut Self {
self.world_mut()
.register_component::<T>(storage_type)
.unwrap();
self
}

Expand Down

0 comments on commit 213882c

Please sign in to comment.