usebevy::prelude::*;/// A component for a `CameraSpot` that defines what objects are ignored when at that spot.
////// Useful for creating area triggers.
#[derive(Component, Default)]pubstructIgnores{/// The names of the entities to ignore.
pubnames:Vec<String>,
}implIgnores{/// Returns a new instance of `Ignores`.
pubfnnew(names:Vec<&str>)->Self{Self{
names: names.into_iter().map(|n|n.to_owned()).collect(),}}/// Returns a new instance of `Ignores`, from a single value.
pubfnsingle(name:&str)->Self{Self::new(vec![name])}}