Struct yy_typings::object_yy::Object [−][src]
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: bool
Enabled if the objects is a physics sensor.
physics_shape: PhysicsShape
The shape of the physics, which is needed to understand the shape points.
physics_group: usize
What numerical group it belongs to. 0 is a special non-group value.
physics_density: f64
The density.
physics_restitution: f64
The restitution.
physics_linear_damping: f64
The linear damping.
physics_angular_damping: f64
The angular damping set.
physics_friction: f64
The friction set.
physics_start_awake: bool
Whether this object should start awake or not.
physics_kinematic: bool
Whether this physics object is kinematic or not.
physics_shape_points: Vec<PhysicsVec2>
The shape points of the physics shape.
event_list: Vec<ObjectEvent>
properties: Vec<ObjectProperty>
The properties which were made in this object directly.
overridden_properties: Vec<ObjectOverrideProperty>
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.
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Object> for Object
[src]
impl PartialOrd<Object> for Object
[src]
fn partial_cmp(&self, other: &Object) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Object
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,