pub struct Template {
pub source: PathBuf,
pub tileset: Option<Arc<Tileset>>,
pub object: ObjectData,
}Expand description
A template, consisting of an object and a tileset
Templates define a tileset and object data to use for an object that can be shared between multiple objects and maps.
Fields§
§source: PathBufThe path first used in a ResourceReader to load this template.
tileset: Option<Arc<Tileset>>The tileset this template contains a reference to
object: ObjectDataThe object data for this template
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more