pub struct AiComponent {
pub model_id: String,
pub state: BehaviorState,
pub difficulty: u8,
}Expand description
AI component attached to entities
Fields§
§model_id: StringModel identifier (either path or builtin name)
state: BehaviorStateCurrent behavior state
difficulty: u8Difficulty level (1-10, affects model parameters)
Implementations§
Source§impl AiComponent
impl AiComponent
Trait Implementations§
Source§impl Clone for AiComponent
impl Clone for AiComponent
Source§fn clone(&self) -> AiComponent
fn clone(&self) -> AiComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AiComponent
impl RefUnwindSafe for AiComponent
impl Send for AiComponent
impl Sync for AiComponent
impl Unpin for AiComponent
impl UnwindSafe for AiComponent
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