config files
This commit is contained in:
@@ -3,7 +3,7 @@ use bevy::{
|
||||
ecs::{
|
||||
component::Component,
|
||||
entity::Entity,
|
||||
query::{Added, With, Without},
|
||||
query::{With, Without},
|
||||
system::{Commands, Query},
|
||||
},
|
||||
};
|
||||
@@ -23,16 +23,6 @@ impl Plugin for TripwirePlugin {
|
||||
}
|
||||
}
|
||||
|
||||
// this will be on a tripwire command event (from srs), instead of Added<Player>, not everyone may want it; opt-in over opt-out
|
||||
// fn add_tripwire(mut commands: Commands, players: Query<Entity, Added<Player>>) {
|
||||
// for ent in players.iter() {
|
||||
// commands.entity(ent).insert(Tripwire {
|
||||
// range: 2.0,
|
||||
// reported: vec![],
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
fn tripwire(
|
||||
mut commands: Commands,
|
||||
awacs: Query<(Entity, &Callsign, &Radio), (With<Awacs>, With<Blue>, With<Radio>)>,
|
||||
|
||||
Reference in New Issue
Block a user