Struct rust_rpg_toolkit::nodes::actor::ActorBehaviorParams [−][src]
pub struct ActorBehaviorParams {
pub aggression: ActorAggression,
pub home: Option<Vec2>,
pub behavior_set_id: String,
pub is_stationary: bool,
pub is_on_guard: bool,
pub flee_at_health_factor: f32,
pub attackers: HashMap<String, Handle<Actor>>,
pub collisions: Vec<(Collider, CollisionKind)>,
}
Fields
aggression: ActorAggression
home: Option<Vec2>
behavior_set_id: String
is_stationary: bool
is_on_guard: bool
flee_at_health_factor: f32
attackers: HashMap<String, Handle<Actor>>
collisions: Vec<(Collider, CollisionKind)>
Trait Implementations
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 ActorBehaviorParams
impl Send for ActorBehaviorParams
impl !Sync for ActorBehaviorParams
impl Unpin for ActorBehaviorParams
impl !UnwindSafe for ActorBehaviorParams
Blanket Implementations
Mutably borrows from an owned value. Read more