Struct tego::ObjectLayer[][src]

pub struct ObjectLayer {
    pub id: usize,
    pub name: String,
    pub opacity: f32,
    pub visible: bool,
    pub offset: ivec2,
    pub content: Vec<Object>,
}
Expand description

An ObjectLayer is a container of Objects. Objects are not aligned to the tile grid, and can be used to include extra information in a map.

Check the Tiled Documentation for more information on objects.

Fields

id: usizename: Stringopacity: f32visible: booloffset: ivec2content: Vec<Object>

The Objects contained in this layer

Implementations

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

Performs the conversion.

Performs the conversion.

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.