Enum primitives::prelude::Agenda
source · [−]pub enum Agenda {
Always,
Birth,
Death,
Standard,
Attack,
Defend,
Custom {
value: TypeId,
},
}
Expand description
Can be used to influence the internal state of an Entity
via AgendaManager
.
Can be extended with Custom by using concrete project values.
Variants
Always
The default Agenda. Anything assigned to this will be run each update irrespective of what agenda the parent is assigned.
Birth
The Birth Agenda
Death
The Death Agenda
Standard
The Standard Agenda
Attack
The Attack Agenda
Defend
The Defend Agenda
Custom
Fields
value: TypeId
Custom value
Allows Agenda to be extended (e.g. for using entity specific enumerated agendas).
Trait Implementations
impl Copy for Agenda
impl Eq for Agenda
impl StructuralEq for Agenda
impl StructuralPartialEq for Agenda
Auto Trait Implementations
impl RefUnwindSafe for Agenda
impl Send for Agenda
impl Sync for Agenda
impl Unpin for Agenda
impl UnwindSafe for Agenda
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more