Struct yy_typings::sprite_yy::Frame [−][src]
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.
These are the tags affixed to this frame, which is not possible.
resource_type: ConstGmSpriteFrame
This is the type of Resource.
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
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl UnwindSafe for Frame
Blanket Implementations
Mutably borrows from an owned value. Read more