pub struct Costume {
pub name: String,
pub md5ext: Option<String>,
pub asset_id: String,
pub rotation_center_x: f64,
pub rotation_center_y: f64,
pub bitmap_resolution: f64,
}
Expand description
Sprite costume
Fields§
§name: String
§md5ext: Option<String>
§asset_id: String
§rotation_center_x: f64
Center of this costume with coordinates local to the image.
rotation_center_y: f64
§bitmap_resolution: f64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Costume
impl<'de> Deserialize<'de> for Costume
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 Costume
impl RefUnwindSafe for Costume
impl Send for Costume
impl Sync for Costume
impl Unpin for Costume
impl UnwindSafe for Costume
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