Struct tego::Object [−][src]
pub struct Object {
pub id: usize,
pub name: String,
pub type_: String,
pub pos: fvec2,
pub size: fvec2,
pub rotation: f32,
pub tile_id: Option<GID>,
pub visible: bool,
pub kind: ObjectKind,
}Expand description
An element of an ObjectLayer. Objects do not need to be aligned to the normal tile grid. Objects can have different kinds, (e.g. rect, ellipse, text). See ObjectKind for more info.
Fields
id: usizename: Stringtype_: Stringpos: fvec2size: fvec2rotation: f32tile_id: Option<GID>visible: boolkind: ObjectKind