pub struct BattleMap {
pub unk0: Vec<u8>,
pub tileset: MaybeSerialized<Tileset>,
pub palette: Palette,
pub tile_layers: [TileLayer; 3],
pub unk6: Vec<u8>,
pub unk7: Vec<u8>,
}Fields§
§unk0: Vec<u8>§tileset: MaybeSerialized<Tileset>Compressing and decompressing the tileset is slow, so you should only deserialize it when necessary.
palette: Palette§tile_layers: [TileLayer; 3]§unk6: Vec<u8>§unk7: Vec<u8>Implementations§
Source§impl BattleMap
impl BattleMap
pub fn deserialize_tileset( data: &[u8], ) -> Result<Tileset, BattleMapTilesetDeserializationError>
pub fn serialize_tileset( tileset: &Tileset, ) -> Result<Vec<u8>, BattleMapTilesetSerializationError>
Trait Implementations§
impl Eq for BattleMap
impl StructuralPartialEq for BattleMap
Auto Trait Implementations§
impl Freeze for BattleMap
impl RefUnwindSafe for BattleMap
impl Send for BattleMap
impl Sync for BattleMap
impl Unpin for BattleMap
impl UnsafeUnpin for BattleMap
impl UnwindSafe for BattleMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more