cleanup
This commit is contained in:
parent
f1a7781fa2
commit
d2744d7f16
|
@ -58,7 +58,6 @@ impl Plugin for WorldPlugin {
|
|||
app.insert_resource(Gravity(DVec3::splat(0.0)));
|
||||
app.insert_resource(AsteroidUpdateTimer(
|
||||
Timer::from_seconds(ASTEROID_UPDATE_INTERVAL, TimerMode::Repeating)));
|
||||
app.insert_resource(AsteroidDatabase(Vec::new()));
|
||||
app.insert_resource(ActiveAsteroids(HashMap::new()));
|
||||
app.add_event::<DespawnEvent>();
|
||||
|
||||
|
@ -77,7 +76,6 @@ impl Plugin for WorldPlugin {
|
|||
}
|
||||
|
||||
#[derive(Resource)] struct AsteroidUpdateTimer(Timer);
|
||||
#[derive(Resource)] struct AsteroidDatabase(Vec<AsteroidData>);
|
||||
#[derive(Resource)] pub struct ActiveAsteroids(pub HashMap<I64Vec3, AsteroidData>);
|
||||
#[derive(Resource)] struct AsteroidModel1(Handle<Scene>);
|
||||
#[derive(Resource)] struct AsteroidModel2(Handle<Scene>);
|
||||
|
|
Loading…
Reference in a new issue