Struct rust_rpg_toolkit::render::animation::SpriteAnimationParams [−][src]
pub struct SpriteAnimationParams {
pub offset: Vec2,
pub texture_id: String,
pub normal_map_id: Option<String>,
pub tile_size: Vec2,
pub animations: Vec<Animation>,
pub should_play: bool,
}
Fields
offset: Vec2
texture_id: String
normal_map_id: Option<String>
tile_size: Vec2
animations: Vec<Animation>
should_play: bool
Trait Implementations
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SpriteAnimationParams
impl Send for SpriteAnimationParams
impl Sync for SpriteAnimationParams
impl Unpin for SpriteAnimationParams
impl UnwindSafe for SpriteAnimationParams
Blanket Implementations
Mutably borrows from an owned value. Read more