[][src]Struct yy_typings::sprite::Frame

pub struct Frame {
    pub composite_image: Image,
    pub images: Vec<Image>,
    pub parent: FilesystemPath,
    pub resource_version: String,
    pub name: FrameId,
    pub tags: Tags,
    pub resource_type: ConstGmSpriteFrame,
}

Fields

composite_image: Image

This is the actual image you'll see in the game. It's a composite of the images below. It's LayerID will always be UUID::default, or 0000...0000, but it's FrameID will always == Self.Id.

images: Vec<Image>

These are the images which compose the composite image. At the minimum, there will be one Image. It's LayerID will correspond to the LayerId of a Sprite above.

parent: FilesystemPath

This is the path to the sprite parent. It will always have the name of the Sprite name, and the path to the sprite .yy file.

resource_version: String

The version of this particular resource.

name: FrameId

This is the name of the Frame, which will always be a UUID.

tags: Tags

These are the tags affixed to this frame, which is not possible.

resource_type: ConstGmSpriteFrame

This is the type of Resource.

Trait Implementations

impl Clone for Frame[src]

impl Debug for Frame[src]

impl Default for Frame[src]

fn default() -> Self[src]

Return Frame { composite_image: Default::default(), images: Default::default(), parent: Default::default(), resource_version: "1.0" . to_string(), name: Default::default(), tags: vec ! [], resource_type: Default::default() }

impl<'de> Deserialize<'de> for Frame[src]

impl Eq for Frame[src]

impl PartialEq<Frame> for Frame[src]

impl Serialize for Frame[src]

impl StructuralEq for Frame[src]

impl StructuralPartialEq for Frame[src]

Auto Trait Implementations

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnwindSafe for Frame

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,