[][src]Struct yy_typings::object_yy::ObjectEvent

pub struct ObjectEvent {
    pub is_dn_d: bool,
    pub event_type: EventType,
    pub collision_object_id: Option<FilesystemPath>,
    pub parent: FilesystemPath,
    pub resource_version: ResourceVersion,
    pub name: Option<String>,
    pub tags: Tags,
    pub resource_type: ConstGmEvent,
}

Fields

is_dn_d: bool

Is this event used in DragNDrop, the thing no one uses?

event_type: EventType

The type of the event. In the JSON, this is represented with two enums, but we use Serde to succesfully parse this into idiomatic Rust enums.

collision_object_id: Option<FilesystemPath>

The Id of the thing to collide with.

parent: FilesystemPath

Filesystem path pointing directly to the parent Object, such as:

{
    "name": "obj_stairs",
    "path": "objects/obj_stairs/obj_stairs.yy"
}
resource_version: ResourceVersion

The version of the .yy file.

name: Option<String>

The "name" of the Event, which appears to always be null or an empty string

tags: Tags

The tags for the event, which probably should always be empty.

resource_type: ConstGmEvent

The constant resource type for GmEvents.

Trait Implementations

impl Clone for ObjectEvent[src]

impl Debug for ObjectEvent[src]

impl Default for ObjectEvent[src]

fn default() -> Self[src]

Return ObjectEvent { is_dn_d: Default::default(), event_type: Default::default(), collision_object_id: Default::default(), parent: Default::default(), resource_version: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

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

impl Eq for ObjectEvent[src]

impl Ord for ObjectEvent[src]

impl PartialEq<ObjectEvent> for ObjectEvent[src]

impl PartialOrd<ObjectEvent> for ObjectEvent[src]

impl Serialize for ObjectEvent[src]

impl StructuralEq for ObjectEvent[src]

impl StructuralPartialEq for ObjectEvent[src]

Auto Trait Implementations

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