pub struct Pack {
pub version: u8,
pub id: String,
pub name: String,
pub atlases: Vec<String>,
pub columns: u16,
pub rows: u16,
pub tile_width: u16,
pub tile_height: u16,
pub actions: BTreeMap<String, Action>,
pub states: BTreeMap<String, String>,
pub views: BTreeMap<String, String>,
}Fields§
§version: u8§id: String§name: String§atlases: Vec<String>§columns: u16§rows: u16§tile_width: u16§tile_height: u16§actions: BTreeMap<String, Action>§states: BTreeMap<String, String>§views: BTreeMap<String, String>Implementations§
Source§impl Pack
impl Pack
pub fn page(&self, frame: usize) -> usize
pub fn local_frame(&self, frame: usize) -> usize
pub fn parse(bytes: &[u8]) -> Result<Self, String>
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pack
impl<'de> Deserialize<'de> for Pack
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
impl StructuralPartialEq for Pack
Auto Trait Implementations§
impl Forget for Pack
impl Freeze for Pack
impl Move for Pack
impl RefUnwindSafe for Pack
impl Send for Pack
impl Sync for Pack
impl Unpin for Pack
impl UnsafeUnpin for Pack
impl UnwindSafe for Pack
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