#[repr(C)]pub struct EthogramBehaviorEntry {
pub action_id: u64,
pub trigger_stimulus_hash: u64,
pub target_state_id: u16,
pub precondition_mask: u16,
pub animation_clip_id: u32,
pub energy_delta_permill: i16,
pub hydration_delta_permill: i16,
pub damage_delta_permill: i16,
pub priority: u8,
pub category: u8,
}Expand description
A fixed-stride binary entry representing one state-transition behavior in the ethogram.
Fields§
§action_id: u64Action identifier (e.g. q_hash("action:flee")).
trigger_stimulus_hash: u64Stimulus topic hash that triggers this behavior.
target_state_id: u16Target behavioral state ID upon transition.
precondition_mask: u16Required precondition flags bitmask.
animation_clip_id: u32Target SKL1 skeletal motor clip to play.
energy_delta_permill: i16Energy change delta permill (+/-).
hydration_delta_permill: i16Hydration change delta permill (+/-).
damage_delta_permill: i16Damage change delta permill (+/-).
priority: u8Behavioral priority (higher values preempt lower priority behaviors).
category: u8Category of affordance (Physiological, Locomotion, Social, etc.).
Trait Implementations§
Source§impl Clone for EthogramBehaviorEntry
impl Clone for EthogramBehaviorEntry
impl Copy for EthogramBehaviorEntry
Source§impl Debug for EthogramBehaviorEntry
impl Debug for EthogramBehaviorEntry
Source§impl Default for EthogramBehaviorEntry
impl Default for EthogramBehaviorEntry
Source§impl<'de> Deserialize<'de> for EthogramBehaviorEntry
impl<'de> Deserialize<'de> for EthogramBehaviorEntry
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
impl Eq for EthogramBehaviorEntry
Source§impl PartialEq for EthogramBehaviorEntry
impl PartialEq for EthogramBehaviorEntry
impl Pod for EthogramBehaviorEntry
Source§impl Serialize for EthogramBehaviorEntry
impl Serialize for EthogramBehaviorEntry
impl StructuralPartialEq for EthogramBehaviorEntry
Auto Trait Implementations§
impl Freeze for EthogramBehaviorEntry
impl RefUnwindSafe for EthogramBehaviorEntry
impl Send for EthogramBehaviorEntry
impl Sync for EthogramBehaviorEntry
impl Unpin for EthogramBehaviorEntry
impl UnsafeUnpin for EthogramBehaviorEntry
impl UnwindSafe for EthogramBehaviorEntry
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.