pub struct Character {
pub styles: HashMap<String, String>,
/* private fields */
}Fields§
§styles: HashMap<String, String>{style name: image name}
Implementations§
Source§impl Character
impl Character
pub fn new(name: &str) -> Self
pub fn initialize(&mut self)
pub fn is_dirty(&self) -> bool
pub fn rebuild(&mut self)
pub fn name(&self) -> &str
pub fn set_name(&mut self, value: String)
pub fn style_transition(&self) -> &CharacterStyle
pub fn style_transition_mut(&mut self) -> &mut CharacterStyle
pub fn set_style(&mut self, value: String)
pub fn visibility(&self) -> Scalar
pub fn visibility_anim(&self) -> &Interpolation<Scalar>
pub fn visibility_anim_mut(&mut self) -> &mut Interpolation<Scalar>
pub fn set_visibility(&mut self, value: Scalar)
pub fn hide(&mut self)
pub fn show(&mut self)
pub fn name_color(&self) -> Color
pub fn name_color_anim(&self) -> &Interpolation<Color>
pub fn name_color_anim_mut(&mut self) -> &mut Interpolation<Color>
pub fn set_name_color(&mut self, value: Color)
pub fn position(&self) -> Position
pub fn position_anim(&self) -> &Interpolation<Position>
pub fn position_anim_mut(&mut self) -> &mut Interpolation<Position>
pub fn set_position(&mut self, value: Position)
pub fn alignment(&self) -> Position
pub fn alignment_anim(&self) -> &Interpolation<Position>
pub fn alignment_anim_mut(&mut self) -> &mut Interpolation<Position>
pub fn set_alignment(&mut self, value: Position)
pub fn rotation(&self) -> Scalar
pub fn rotation_anim(&self) -> &Interpolation<Scalar>
pub fn rotation_anim_mut(&mut self) -> &mut Interpolation<Scalar>
pub fn set_rotation(&mut self, value: Scalar)
pub fn scale(&self) -> Scale
pub fn scale_anim(&self) -> &Interpolation<Scale>
pub fn scale_anim_mut(&mut self) -> &mut Interpolation<Scale>
pub fn set_scale(&mut self, value: Scale)
pub fn process(&mut self, delta_time: Scalar)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Character
impl<'de> Deserialize<'de> for Character
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
Source§impl Prefab for Character
impl Prefab for Character
fn post_from_prefab(&mut self)
fn from_prefab(data: &Value) -> Result<Self, PrefabError>
fn from_prefab_with_extras( data: &Value, _named_entities: &HashMap<String, Entity>, _state_token: ID<PhantomData<dyn State + Send + Sync>>, ) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
fn to_prefab_string(&self) -> Result<String, PrefabError>
Auto Trait Implementations§
impl Freeze for Character
impl RefUnwindSafe for Character
impl Send for Character
impl Sync for Character
impl Unpin for Character
impl UnsafeUnpin for Character
impl UnwindSafe for Character
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