Struct veloren_common::generation::AgentConfig
source · pub struct AgentConfig {
pub has_agency: Option<bool>,
pub no_flee: Option<bool>,
pub idle_wander_factor: Option<f32>,
pub aggro_range_multiplier: Option<f32>,
}
Fields§
§has_agency: Option<bool>
§no_flee: Option<bool>
§idle_wander_factor: Option<f32>
§aggro_range_multiplier: Option<f32>
Trait Implementations§
source§impl Clone for AgentConfig
impl Clone for AgentConfig
source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a copy 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 moresource§impl Debug for AgentConfig
impl Debug for AgentConfig
source§impl Default for AgentConfig
impl Default for AgentConfig
source§fn default() -> AgentConfig
fn default() -> AgentConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AgentConfigwhere
AgentConfig: Default,
impl<'de> Deserialize<'de> for AgentConfigwhere
AgentConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnwindSafe for AgentConfig
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.