pub struct Entity { /* private fields */ }Expand description
An entity’s animation data for matched combat.
Specifies the animation files, metadata, timing, equipment visibility, and conditions (filters) for when this animation can be used.
Implementations§
Source§impl Entity
impl Entity
Sourcepub fn animation_filename(&self) -> &String
pub fn animation_filename(&self) -> &String
Path to the animation file for this entity.
Sourcepub fn metadata_filenames(&self) -> &Vec<String>
pub fn metadata_filenames(&self) -> &Vec<String>
Paths to metadata files containing additional animation data.
Sourcepub fn blend_in_time(&self) -> &f32
pub fn blend_in_time(&self) -> &f32
Time in seconds for blending into this animation from the previous state.
Sourcepub fn equipment_display(&self) -> &u32
pub fn equipment_display(&self) -> &u32
Equipment display flags controlling weapon/shield visibility during animation.
Sourcepub fn filters(&self) -> &Vec<Filter>
pub fn filters(&self) -> &Vec<Filter>
Filters that must match for this animation to be eligible for selection.
Filters check conditions like unit type, equipment, size, etc.
Sourcepub fn mount_filename(&self) -> &String
pub fn mount_filename(&self) -> &String
Animation filename for the mount (only in Warhammer 3 files).
Used when the participant is mounted on a creature or horse.
Source§impl Entity
impl Entity
Sourcepub fn set_animation_filename(&mut self, val: String) -> &mut Self
pub fn set_animation_filename(&mut self, val: String) -> &mut Self
Path to the animation file for this entity.
Sourcepub fn set_metadata_filenames(&mut self, val: Vec<String>) -> &mut Self
pub fn set_metadata_filenames(&mut self, val: Vec<String>) -> &mut Self
Paths to metadata files containing additional animation data.
Sourcepub fn set_blend_in_time(&mut self, val: f32) -> &mut Self
pub fn set_blend_in_time(&mut self, val: f32) -> &mut Self
Time in seconds for blending into this animation from the previous state.
Sourcepub fn set_equipment_display(&mut self, val: u32) -> &mut Self
pub fn set_equipment_display(&mut self, val: u32) -> &mut Self
Equipment display flags controlling weapon/shield visibility during animation.
Sourcepub fn set_filters(&mut self, val: Vec<Filter>) -> &mut Self
pub fn set_filters(&mut self, val: Vec<Filter>) -> &mut Self
Filters that must match for this animation to be eligible for selection.
Filters check conditions like unit type, equipment, size, etc.
Sourcepub fn set_mount_filename(&mut self, val: String) -> &mut Self
pub fn set_mount_filename(&mut self, val: String) -> &mut Self
Animation filename for the mount (only in Warhammer 3 files).
Used when the participant is mounted on a creature or horse.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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>,
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.