config files

This commit is contained in:
AviiNL
2023-12-22 16:24:17 +01:00
parent f79b6b5dfb
commit 8851594537
14 changed files with 302 additions and 36 deletions

View File

@@ -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>)>,