pub struct SaveMetadata {
pub name: String,
pub width: i32,
pub height: i32,
pub image: Vec<u8>,
pub value: i32,
pub mods: Vec<SavedMod>,
pub wide: bool,
}Expand description
The first payload (SaveLoad::SaveMetaData): what the load dialog shows. One block at version
3.
Original: Runtime 0x1800c3d00.
Fields§
§name: StringThe town’s name, as the Load dialog shows it.
width: i32The preview picture’s width in pixels.
height: i32The preview picture’s height in pixels.
image: Vec<u8>width × height 4-byte texels (blue, green, red, unused) of the preview.
value: i32From version 3: an unnamed value (2 in the samples), then the active mods.
mods: Vec<SavedMod>The mods that were on when the town was saved.
wide: boolThe strings were UTF-16 (2015 builds).
Implementations§
Source§impl SaveMetadata
impl SaveMetadata
Trait Implementations§
Source§impl Clone for SaveMetadata
impl Clone for SaveMetadata
Source§fn clone(&self) -> SaveMetadata
fn clone(&self) -> SaveMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SaveMetadata
impl Debug for SaveMetadata
Source§impl PartialEq for SaveMetadata
impl PartialEq for SaveMetadata
impl StructuralPartialEq for SaveMetadata
Auto Trait Implementations§
impl Freeze for SaveMetadata
impl RefUnwindSafe for SaveMetadata
impl Send for SaveMetadata
impl Sync for SaveMetadata
impl Unpin for SaveMetadata
impl UnsafeUnpin for SaveMetadata
impl UnwindSafe for SaveMetadata
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