pub struct SizeRecord(pub [i32; 17]);Expand description
The settings of one map size in a terrain profile: 17 values, in the order the game keeps them
in memory. The first value is n, half the terrain’s size in cells. The resource stores them
in another order; SizeRecord::from_wire converts.
banished_formats::game::TerrainGenerator reads a profile, with one size record for each
map size (small, medium, large).
Tuple Fields§
§0: [i32; 17]Implementations§
Trait Implementations§
Source§impl Clone for SizeRecord
impl Clone for SizeRecord
Source§fn clone(&self) -> SizeRecord
fn clone(&self) -> SizeRecord
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 moreimpl Copy for SizeRecord
Source§impl Debug for SizeRecord
impl Debug for SizeRecord
impl Eq for SizeRecord
Source§impl PartialEq for SizeRecord
impl PartialEq for SizeRecord
impl StructuralPartialEq for SizeRecord
Auto Trait Implementations§
impl Freeze for SizeRecord
impl RefUnwindSafe for SizeRecord
impl Send for SizeRecord
impl Sync for SizeRecord
impl Unpin for SizeRecord
impl UnsafeUnpin for SizeRecord
impl UnwindSafe for SizeRecord
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