pub struct CharacterConfig {
pub skin: SkinBlock,
pub mat_list: MaterialList,
}Fields§
§skin: SkinBlock§mat_list: MaterialListImplementations§
Source§impl CharacterConfig
impl CharacterConfig
pub fn resolve_materials(&self) -> Option<CharacterMaterials>
Sourcepub fn resolve_active_materials(&self) -> Option<CharacterMaterials>
pub fn resolve_active_materials(&self) -> Option<CharacterMaterials>
Resolves the textures currently pointed to by the game (ignoring backups).
Sourcepub fn apply_skin(&mut self, skin_config: &CharacterConfig)
pub fn apply_skin(&mut self, skin_config: &CharacterConfig)
Updates this config with materials from another config (a skin).
If a material in this config is updated and doesn’t have a texture_base,
the current texture is preserved in texture_base as a backup.
Trait Implementations§
Source§impl Clone for CharacterConfig
impl Clone for CharacterConfig
Source§fn clone(&self) -> CharacterConfig
fn clone(&self) -> CharacterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharacterConfig
impl Debug for CharacterConfig
Source§impl<'de> Deserialize<'de> for CharacterConfig
impl<'de> Deserialize<'de> for CharacterConfig
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
Auto Trait Implementations§
impl Freeze for CharacterConfig
impl RefUnwindSafe for CharacterConfig
impl Send for CharacterConfig
impl Sync for CharacterConfig
impl Unpin for CharacterConfig
impl UnsafeUnpin for CharacterConfig
impl UnwindSafe for CharacterConfig
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
Mutably borrows from an owned value. Read more