pub struct Yyp {
Show 15 fields pub resources: Vec<YypResource>, pub options: Vec<FilesystemPath>, pub default_script_type: i32, pub is_ecma: bool, pub configs: YypConfig, pub room_order_nodes: Vec<RoomOrderId>, pub folders: Vec<YypFolder>, pub audio_groups: Vec<AudioGroup>, pub texture_groups: Vec<TextureGroup>, pub included_files: Vec<YypIncludedFile>, pub meta_data: YypMetaData, pub resource_version: ResourceVersion, pub name: String, pub tags: Tags, pub resource_type: ConstGmProject,
}
Expand description

GMS2 project file typings

Fields

resources: Vec<YypResource>

Contains all project resources, ordered by KeyID.

options: Vec<FilesystemPath>default_script_type: i32

Denotes whether this project uses drag and drop or not

is_ecma: bool

Allows for experimental JS editing. Unfinished or legacy feature. It’s a secret.

configs: YypConfig

Lists all known configs. Note that this top level config will always have the name "Default".

room_order_nodes: Vec<RoomOrderId>

This is the order rooms are loaded in. The first room is the default room which GMS2 will load on GameStart.

folders: Vec<YypFolder>

This represents all the Views in the Project, which will have resource paths within them.

audio_groups: Vec<AudioGroup>

The Audio Groups present within the project. Relationship to the inherited.yy is unclear

texture_groups: Vec<TextureGroup>

The Texture groups present within the project. Relationship to the inherited.yy is unclear

included_files: Vec<YypIncludedFile>

The included files within the projects.

meta_data: YypMetaData

The MetaData for the project.

resource_version: ResourceVersion

The version of the YYP. Currently, that is “1.5”

name: String

The actual human-readable name of the Project, such as “Forager” or “Fields of Mistria” or “Test1122 please work”.

tags: Tags

Somehow, the Tags field, which exists purely due to OOP, I assume. It should always be empty and does nothing.

resource_type: ConstGmProject

The ResourceType of the YYP, which is “GMProject”

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return Yyp { resources: Default::default(), options: Default::default(), default_script_type: Default::default(), is_ecma: Default::default(), configs: Default::default(), room_order_nodes: Default::default(), folders: Default::default(), audio_groups: Default::default(), texture_groups: Default::default(), included_files: Default::default(), meta_data: Default::default(), resource_version: ResourceVersion :: new(1, 5), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.