pub struct AiSystemIntegrator {Show 20 fields
pub editor: AiBehaviorEditor,
pub spatial_grid: SpatialGrid,
pub cover_system: CoverSystem,
pub event_bus: AiEventBus,
pub lod_manager: AiLodManager,
pub perf_monitor: PerformanceMonitor,
pub nav_mesh: NavMesh,
pub world_tracker: WorldStateTracker,
pub htn_planner: HtnPlanner,
pub pathfinder: GridPathfinder,
pub camera_director: CameraDirectorAi,
pub agent_memories: HashMap<u64, AgentMemory>,
pub agent_social_graphs: HashMap<u64, SocialGraph>,
pub agent_fusion: HashMap<u64, SensorFusion>,
pub squad_ais: Vec<SquadAi>,
pub decision_trees: HashMap<String, DecisionTreeNode>,
pub fuzzy_systems: HashMap<String, FuzzyInferenceSystem>,
pub behavior_modulators: HashMap<u64, BehaviorModulator>,
pub noise: ValueNoise,
pub window_layout: EditorWindowLayout,
}Fields§
§editor: AiBehaviorEditor§spatial_grid: SpatialGrid§cover_system: CoverSystem§event_bus: AiEventBus§lod_manager: AiLodManager§perf_monitor: PerformanceMonitor§world_tracker: WorldStateTracker§htn_planner: HtnPlanner§pathfinder: GridPathfinder§camera_director: CameraDirectorAi§agent_memories: HashMap<u64, AgentMemory>§agent_fusion: HashMap<u64, SensorFusion>§squad_ais: Vec<SquadAi>§decision_trees: HashMap<String, DecisionTreeNode>§fuzzy_systems: HashMap<String, FuzzyInferenceSystem>§behavior_modulators: HashMap<u64, BehaviorModulator>§noise: ValueNoise§window_layout: EditorWindowLayoutImplementations§
Source§impl AiSystemIntegrator
impl AiSystemIntegrator
pub fn new() -> Self
pub fn full_update(&mut self, dt: f32)
pub fn spawn_squad(&mut self, leader_id: u64, formation: FormationType)
pub fn query_decision_tree( &self, tree_name: &str, blackboard: &Blackboard, ) -> Option<(u32, String)>
pub fn query_fuzzy(&self, system_name: &str, inputs: &[f32]) -> Option<f32>
pub fn broadcast_event(&mut self, signal: AiSignal)
pub fn stats_summary(&self) -> String
Auto Trait Implementations§
impl Freeze for AiSystemIntegrator
impl RefUnwindSafe for AiSystemIntegrator
impl Send for AiSystemIntegrator
impl Sync for AiSystemIntegrator
impl Unpin for AiSystemIntegrator
impl UnsafeUnpin for AiSystemIntegrator
impl UnwindSafe for AiSystemIntegrator
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.