usebevy::prelude::*;/// A component for a `CameraSpot` that defines what spot you will go back when at that spot.
////// Overrides `BackToState`.
#[derive(Component, Debug)]pubstructBackToSpot{/// The name of the target spot.
pubname: String,
}implBackToSpot{/// Returns a new instance of `BackToSpot`.
pubfnnew(name:&str)->Self{Self{
name: name.to_owned(),}}}/// A component for a `CameraSpot` that defines what state you will go back when at that spot.
#[derive(Component, Debug)]pubstructBackToState<T>{/// The state to go back to.
pubstate: T,
}impl<T>BackToState<T>{/// Returns a new instance of `BackToState`.
pubfnnew(state: T)->Self{Self{ state }}}