Struct yy_typings::Room
source · [−]pub struct Room {Show 16 fields
pub is_dnd: bool,
pub volume: f64,
pub parent_room: Option<ViewPath>,
pub views: Vec<RoomView>,
pub layers: Vec<Layer>,
pub inherit_layers: bool,
pub creation_code_file: String,
pub inherit_code: bool,
pub instance_creation_order: Vec<ViewPath>,
pub inherit_creation_order: bool,
pub sequence_id: Option<()>,
pub room_settings: RoomSettings,
pub view_settings: ViewSettings,
pub physics_settings: PhysicsSettings,
pub resource_data: ResourceData,
pub resource_type: ConstGmRoom,
}
Fields
is_dnd: bool
Is this used in DragNDrop? Hopefully not! that would get messy.
volume: f64
A volume? I have no idea where this appears in the UI. Appears to be a number between 0.0 and 1.0.
parent_room: Option<ViewPath>
The path of the parent room.
views: Vec<RoomView>
Eight (at least) views. Most users won’t have anything meaningful here.
layers: Vec<Layer>
The layers of data which are in the room.
inherit_layers: bool
This is only meaningful if parent_room
is Some
.
creation_code_file: String
The relative subpath of the creation code for this room, if it exists.
inherit_code: bool
instance_creation_order: Vec<ViewPath>
inherit_creation_order: bool
sequence_id: Option<()>
room_settings: RoomSettings
view_settings: ViewSettings
physics_settings: PhysicsSettings
resource_data: ResourceData
Common resource data
resource_type: ConstGmRoom
Const id tag of the shader, given by Gms2.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Room
impl<'de> Deserialize<'de> for Room
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 StructuralPartialEq for Room
Auto Trait Implementations
impl RefUnwindSafe for Room
impl Send for Room
impl Sync for Room
impl Unpin for Room
impl UnwindSafe for Room
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more