pub struct Tileset {Show 15 fields
pub name: String,
pub firstgid: u32,
pub tilecount: u32,
pub tileheight: u32,
pub tilewidth: u32,
pub columns: u32,
pub image: String,
pub imageheight: u32,
pub imagewidth: u32,
pub margin: u32,
pub spacing: u32,
pub properties: Option<HashMap<String, String>>,
pub terrains: Option<Vec<Terrain>>,
pub tileproperties: HashMap<u32, HashMap<String, String>>,
pub tiles: HashMap<u32, [u32; 4]>,
}
Fields§
§name: String
§firstgid: u32
§tilecount: u32
§tileheight: u32
§tilewidth: u32
§columns: u32
§image: String
§imageheight: u32
§imagewidth: u32
§margin: u32
§spacing: u32
§properties: Option<HashMap<String, String>>
§terrains: Option<Vec<Terrain>>
§tileproperties: HashMap<u32, HashMap<String, String>>
§tiles: HashMap<u32, [u32; 4]>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tileset
impl<'de> Deserialize<'de> for Tileset
Source§fn 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
Auto Trait Implementations§
impl Freeze for Tileset
impl RefUnwindSafe for Tileset
impl Send for Tileset
impl Sync for Tileset
impl Unpin for Tileset
impl UnwindSafe for Tileset
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