pub struct Entry { /* private fields */ }Expand description
A portrait entry defining camera settings for a specific art set.
Each entry links an art set ID to camera configurations for rendering head and optionally full-body portraits.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn id(&self) -> &String
pub fn id(&self) -> &String
Art set key this entry applies to.
References a key in the art set tables (e.g., land_units_tables).
Sourcepub fn camera_settings_head(&self) -> &CameraSetting
pub fn camera_settings_head(&self) -> &CameraSetting
Camera settings for the head/portrait view.
This is the porthole camera used for unit cards in the bottom-left UI area.
Sourcepub fn camera_settings_body(&self) -> &Option<CameraSetting>
pub fn camera_settings_body(&self) -> &Option<CameraSetting>
Camera settings for the full-body view (optional).
Used in character detail windows in campaign. Only needed for characters and heroes; regular units don’t require body camera settings.
Source§impl Entry
impl Entry
Sourcepub fn id_mut(&mut self) -> &mut String
pub fn id_mut(&mut self) -> &mut String
Art set key this entry applies to.
References a key in the art set tables (e.g., land_units_tables).
Sourcepub fn camera_settings_head_mut(&mut self) -> &mut CameraSetting
pub fn camera_settings_head_mut(&mut self) -> &mut CameraSetting
Camera settings for the head/portrait view.
This is the porthole camera used for unit cards in the bottom-left UI area.
Sourcepub fn camera_settings_body_mut(&mut self) -> &mut Option<CameraSetting>
pub fn camera_settings_body_mut(&mut self) -> &mut Option<CameraSetting>
Camera settings for the full-body view (optional).
Used in character detail windows in campaign. Only needed for characters and heroes; regular units don’t require body camera settings.
Sourcepub fn variants_mut(&mut self) -> &mut Vec<Variant>
pub fn variants_mut(&mut self) -> &mut Vec<Variant>
Texture variants for this portrait.
Allows different textures to be used based on conditions like season, character level, or faction role.
Source§impl Entry
impl Entry
Sourcepub fn set_id(&mut self, val: String) -> &mut Self
pub fn set_id(&mut self, val: String) -> &mut Self
Art set key this entry applies to.
References a key in the art set tables (e.g., land_units_tables).
Sourcepub fn set_camera_settings_head(&mut self, val: CameraSetting) -> &mut Self
pub fn set_camera_settings_head(&mut self, val: CameraSetting) -> &mut Self
Camera settings for the head/portrait view.
This is the porthole camera used for unit cards in the bottom-left UI area.
Sourcepub fn set_camera_settings_body(
&mut self,
val: Option<CameraSetting>,
) -> &mut Self
pub fn set_camera_settings_body( &mut self, val: Option<CameraSetting>, ) -> &mut Self
Camera settings for the full-body view (optional).
Used in character detail windows in campaign. Only needed for characters and heroes; regular units don’t require body camera settings.
Sourcepub fn set_variants(&mut self, val: Vec<Variant>) -> &mut Self
pub fn set_variants(&mut self, val: Vec<Variant>) -> &mut Self
Texture variants for this portrait.
Allows different textures to be used based on conditions like season, character level, or faction role.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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.