pub struct AiAgent {Show 22 fields
pub id: u64,
pub name: String,
pub position: Vec3,
pub velocity: Vec3,
pub heading: Vec3,
pub blackboard: Blackboard,
pub mode: AiAgentMode,
pub behavior_tree: Option<BehaviorTree>,
pub utility_dm: Option<UtilityDecisionMaker>,
pub goap_planner: Option<GoapPlanner>,
pub goap_world_state: WorldState,
pub goap_goal_state: WorldState,
pub goap_current_plan: Option<Vec<usize>>,
pub goap_plan_step: usize,
pub fsm: Option<FsmInstance>,
pub perception: PerceptionSystem,
pub emotion_engine: EmotionEngine,
pub steering_agent: SteeringAgent,
pub formation_slot: Option<Vec3>,
pub formation_type: FormationType,
pub current_time: f32,
pub debug_enabled: bool,
}Fields§
§id: u64§name: String§position: Vec3§velocity: Vec3§heading: Vec3§blackboard: Blackboard§mode: AiAgentMode§behavior_tree: Option<BehaviorTree>§utility_dm: Option<UtilityDecisionMaker>§goap_planner: Option<GoapPlanner>§goap_world_state: WorldState§goap_goal_state: WorldState§goap_current_plan: Option<Vec<usize>>§goap_plan_step: usize§fsm: Option<FsmInstance>§perception: PerceptionSystem§emotion_engine: EmotionEngine§steering_agent: SteeringAgent§formation_slot: Option<Vec3>§formation_type: FormationType§current_time: f32§debug_enabled: boolImplementations§
Auto Trait Implementations§
impl Freeze for AiAgent
impl RefUnwindSafe for AiAgent
impl Send for AiAgent
impl Sync for AiAgent
impl Unpin for AiAgent
impl UnsafeUnpin for AiAgent
impl UnwindSafe for AiAgent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.