pub struct Frame {
    pub composite_image: Image,
    pub images: Vec<Image>,
    pub parent: FilesystemPath,
    pub resource_version: ResourceVersion,
    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: ResourceVersion

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.