#[repr(C)]pub struct LivingOntologyState {
pub stage: DevelopmentalStage,
pub growth_progress_01: f32,
pub age_days: f32,
pub energy_permill: u16,
pub damage_permill: u16,
pub hydration_permill: u16,
pub wear_permill: u16,
pub active_state_id: u32,
pub allometry_base_b: f32,
pub allometry_exponent_k: f32,
}Expand description
Live runtime metabolic and ontogenetic state bound to a scene node via EONT1.
Fields§
§stage: DevelopmentalStageCurrent developmental stage.
growth_progress_01: f32Normalized ontogenetic growth progress in [0.0, 1.0].
age_days: f32Current age in days since germination/birth.
energy_permill: u16Internal energy / biomass reserve in permill (0..=1000).
damage_permill: u16Physical or structural damage in permill (0..=1000).
hydration_permill: u16Cellular hydration / turgor pressure in permill (0..=1000).
wear_permill: u16Accumulated mechanical wear in permill (0..=1000).
active_state_id: u32Active behavioral state identifier.
allometry_base_b: f32Huxley allometric base constant $b$ ($y = b \cdot x^k$).
allometry_exponent_k: f32Huxley allometric power exponent $k$ ($y = b \cdot x^k$).
Implementations§
Source§impl LivingOntologyState
impl LivingOntologyState
Sourcepub const fn from_mini_header(header: &EntityOntologyMiniHeader) -> Self
pub const fn from_mini_header(header: &EntityOntologyMiniHeader) -> Self
Initializes a live state directly from a decoded .10d EntityOntologyMiniHeader.
Trait Implementations§
Source§impl Clone for LivingOntologyState
impl Clone for LivingOntologyState
impl Copy for LivingOntologyState
Source§impl Debug for LivingOntologyState
impl Debug for LivingOntologyState
Source§impl Default for LivingOntologyState
impl Default for LivingOntologyState
Source§impl PartialEq for LivingOntologyState
impl PartialEq for LivingOntologyState
impl StructuralPartialEq for LivingOntologyState
Auto Trait Implementations§
impl Freeze for LivingOntologyState
impl RefUnwindSafe for LivingOntologyState
impl Send for LivingOntologyState
impl Sync for LivingOntologyState
impl Unpin for LivingOntologyState
impl UnsafeUnpin for LivingOntologyState
impl UnwindSafe for LivingOntologyState
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.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 more§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.