Struct yy_typings::sprite_yy::Frame
source · [−]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
sourceimpl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
sourcefn 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
impl Eq for Frame
impl StructuralEq for Frame
impl StructuralPartialEq for Frame
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more