[][src]Struct yy_typings::object_yy::Object

pub struct Object {
    pub sprite_id: Option<FilesystemPath>,
    pub solid: bool,
    pub visible: bool,
    pub sprite_mask_id: Option<FilesystemPath>,
    pub persistent: bool,
    pub parent_object_id: Option<FilesystemPath>,
    pub physics_object: bool,
    pub physics_sensor: bool,
    pub physics_shape: usize,
    pub physics_group: usize,
    pub physics_density: f64,
    pub physics_restitution: f64,
    pub physics_linear_damping: f64,
    pub physics_angular_damping: f64,
    pub physics_friction: f64,
    pub physics_start_awake: bool,
    pub physics_kinematic: bool,
    pub physics_shape_points: Vec<()>,
    pub event_list: Vec<ObjectEvent>,
    pub properties: Vec<ObjectProperty>,
    pub overridden_properties: Vec<ObjectProperty>,
    pub parent: ViewPath,
    pub resource_version: ResourceVersion,
    pub name: String,
    pub tags: Tags,
    pub resource_type: ConstGmObject,
}

Fields

sprite_id: Option<FilesystemPath>

The Id of the Sprite being used for this object.

solid: bool

If the object is marked as solid for the collision system.

visible: bool

If the object is visible.

sprite_mask_id: Option<FilesystemPath>

The Id used for the Collision Mask, if not the SpriteId.

persistent: bool

If the object is "persistent", meaning if Gms2 will keep the object between room change events.

parent_object_id: Option<FilesystemPath>

The id of the parent object for the Inhertance in Gms2.

physics_object: bool

Is this a physics object?

physics_sensor: boolphysics_shape: usizephysics_group: usizephysics_density: f64physics_restitution: f64physics_linear_damping: f64physics_angular_damping: f64physics_friction: f64physics_start_awake: boolphysics_kinematic: boolphysics_shape_points: Vec<()>event_list: Vec<ObjectEvent>properties: Vec<ObjectProperty>

The properties which were made in this object directly.

overridden_properties: Vec<ObjectProperty>

The properties which were made in a parent object AND overriden. If the parent object's properties have not been overriden, then they will not appear anywhere in this object's yy files and must be found recursively.

parent: ViewPath

The parent in the Gms2 virtual file system, ie. the parent which a user would see in the Navigation Pane in Gms2. This has no relationship to the actual operating system's filesystem.

resource_version: ResourceVersion

The resource version of this yy file. At default 1.0.

name: String

The name of the object. This is the human readable name used in the IDE.

tags: Tags

The tags given to the object.

resource_type: ConstGmObject

Const id tag of the object, given by Gms2.

Trait Implementations

impl Clone for Object[src]

impl Debug for Object[src]

impl Default for Object[src]

fn default() -> Self[src]

Return Object { sprite_id: Default::default(), solid: Default::default(), visible: Default::default(), sprite_mask_id: Default::default(), persistent: Default::default(), parent_object_id: Default::default(), physics_object: Default::default(), physics_sensor: Default::default(), physics_shape: Default::default(), physics_group: Default::default(), physics_density: Default::default(), physics_restitution: Default::default(), physics_linear_damping: Default::default(), physics_angular_damping: Default::default(), physics_friction: Default::default(), physics_start_awake: Default::default(), physics_kinematic: Default::default(), physics_shape_points: Default::default(), event_list: Default::default(), properties: Default::default(), overridden_properties: Default::default(), parent: Default::default(), resource_version: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

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

impl PartialEq<Object> for Object[src]

impl PartialOrd<Object> for Object[src]

impl Serialize for Object[src]

impl StructuralPartialEq for Object[src]

Auto Trait Implementations

impl RefUnwindSafe for Object

impl Send for Object

impl Sync for Object

impl Unpin for Object

impl UnwindSafe for Object

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>,