pub struct MapBlock {
Show 29 fields pub tiles: Vec<i32>, pub materials: RepeatedField<MatPair>, pub layer_materials: RepeatedField<MatPair>, pub vein_materials: RepeatedField<MatPair>, pub base_materials: RepeatedField<MatPair>, pub magma: Vec<i32>, pub water: Vec<i32>, pub hidden: Vec<bool>, pub light: Vec<bool>, pub subterranean: Vec<bool>, pub outside: Vec<bool>, pub aquifer: Vec<bool>, pub water_stagnant: Vec<bool>, pub water_salt: Vec<bool>, pub construction_items: RepeatedField<MatPair>, pub buildings: RepeatedField<BuildingInstance>, pub tree_percent: Vec<i32>, pub tree_x: Vec<i32>, pub tree_y: Vec<i32>, pub tree_z: Vec<i32>, pub tile_dig_designation: Vec<TileDigDesignation>, pub spatterPile: RepeatedField<SpatterPile>, pub items: RepeatedField<Item>, pub tile_dig_designation_marker: Vec<bool>, pub tile_dig_designation_auto: Vec<bool>, pub grass_percent: Vec<i32>, pub flows: RepeatedField<FlowInfo>, pub unknown_fields: UnknownFields, pub cached_size: CachedSize, /* private fields */
}

Fields§

§tiles: Vec<i32>§materials: RepeatedField<MatPair>§layer_materials: RepeatedField<MatPair>§vein_materials: RepeatedField<MatPair>§base_materials: RepeatedField<MatPair>§magma: Vec<i32>§water: Vec<i32>§hidden: Vec<bool>§light: Vec<bool>§subterranean: Vec<bool>§outside: Vec<bool>§aquifer: Vec<bool>§water_stagnant: Vec<bool>§water_salt: Vec<bool>§construction_items: RepeatedField<MatPair>§buildings: RepeatedField<BuildingInstance>§tree_percent: Vec<i32>§tree_x: Vec<i32>§tree_y: Vec<i32>§tree_z: Vec<i32>§tile_dig_designation: Vec<TileDigDesignation>§spatterPile: RepeatedField<SpatterPile>§items: RepeatedField<Item>§tile_dig_designation_marker: Vec<bool>§tile_dig_designation_auto: Vec<bool>§grass_percent: Vec<i32>§flows: RepeatedField<FlowInfo>§unknown_fields: UnknownFields§cached_size: CachedSize

Implementations§

source§

impl MapBlock

source

pub fn new() -> MapBlock

source

pub fn get_map_x(&self) -> i32

source

pub fn clear_map_x(&mut self)

source

pub fn has_map_x(&self) -> bool

source

pub fn set_map_x(&mut self, v: i32)

source

pub fn get_map_y(&self) -> i32

source

pub fn clear_map_y(&mut self)

source

pub fn has_map_y(&self) -> bool

source

pub fn set_map_y(&mut self, v: i32)

source

pub fn get_map_z(&self) -> i32

source

pub fn clear_map_z(&mut self)

source

pub fn has_map_z(&self) -> bool

source

pub fn set_map_z(&mut self, v: i32)

source

pub fn get_tiles(&self) -> &[i32]

source

pub fn clear_tiles(&mut self)

source

pub fn set_tiles(&mut self, v: Vec<i32>)

source

pub fn mut_tiles(&mut self) -> &mut Vec<i32>

source

pub fn take_tiles(&mut self) -> Vec<i32>

source

pub fn get_materials(&self) -> &[MatPair]

source

pub fn clear_materials(&mut self)

source

pub fn set_materials(&mut self, v: RepeatedField<MatPair>)

source

pub fn mut_materials(&mut self) -> &mut RepeatedField<MatPair>

source

pub fn take_materials(&mut self) -> RepeatedField<MatPair>

source

pub fn get_layer_materials(&self) -> &[MatPair]

source

pub fn clear_layer_materials(&mut self)

source

pub fn set_layer_materials(&mut self, v: RepeatedField<MatPair>)

source

pub fn mut_layer_materials(&mut self) -> &mut RepeatedField<MatPair>

source

pub fn take_layer_materials(&mut self) -> RepeatedField<MatPair>

source

pub fn get_vein_materials(&self) -> &[MatPair]

source

pub fn clear_vein_materials(&mut self)

source

pub fn set_vein_materials(&mut self, v: RepeatedField<MatPair>)

source

pub fn mut_vein_materials(&mut self) -> &mut RepeatedField<MatPair>

source

pub fn take_vein_materials(&mut self) -> RepeatedField<MatPair>

source

pub fn get_base_materials(&self) -> &[MatPair]

source

pub fn clear_base_materials(&mut self)

source

pub fn set_base_materials(&mut self, v: RepeatedField<MatPair>)

source

pub fn mut_base_materials(&mut self) -> &mut RepeatedField<MatPair>

source

pub fn take_base_materials(&mut self) -> RepeatedField<MatPair>

source

pub fn get_magma(&self) -> &[i32]

source

pub fn clear_magma(&mut self)

source

pub fn set_magma(&mut self, v: Vec<i32>)

source

pub fn mut_magma(&mut self) -> &mut Vec<i32>

source

pub fn take_magma(&mut self) -> Vec<i32>

source

pub fn get_water(&self) -> &[i32]

source

pub fn clear_water(&mut self)

source

pub fn set_water(&mut self, v: Vec<i32>)

source

pub fn mut_water(&mut self) -> &mut Vec<i32>

source

pub fn take_water(&mut self) -> Vec<i32>

source

pub fn get_hidden(&self) -> &[bool]

source

pub fn clear_hidden(&mut self)

source

pub fn set_hidden(&mut self, v: Vec<bool>)

source

pub fn mut_hidden(&mut self) -> &mut Vec<bool>

source

pub fn take_hidden(&mut self) -> Vec<bool>

source

pub fn get_light(&self) -> &[bool]

source

pub fn clear_light(&mut self)

source

pub fn set_light(&mut self, v: Vec<bool>)

source

pub fn mut_light(&mut self) -> &mut Vec<bool>

source

pub fn take_light(&mut self) -> Vec<bool>

source

pub fn get_subterranean(&self) -> &[bool]

source

pub fn clear_subterranean(&mut self)

source

pub fn set_subterranean(&mut self, v: Vec<bool>)

source

pub fn mut_subterranean(&mut self) -> &mut Vec<bool>

source

pub fn take_subterranean(&mut self) -> Vec<bool>

source

pub fn get_outside(&self) -> &[bool]

source

pub fn clear_outside(&mut self)

source

pub fn set_outside(&mut self, v: Vec<bool>)

source

pub fn mut_outside(&mut self) -> &mut Vec<bool>

source

pub fn take_outside(&mut self) -> Vec<bool>

source

pub fn get_aquifer(&self) -> &[bool]

source

pub fn clear_aquifer(&mut self)

source

pub fn set_aquifer(&mut self, v: Vec<bool>)

source

pub fn mut_aquifer(&mut self) -> &mut Vec<bool>

source

pub fn take_aquifer(&mut self) -> Vec<bool>

source

pub fn get_water_stagnant(&self) -> &[bool]

source

pub fn clear_water_stagnant(&mut self)

source

pub fn set_water_stagnant(&mut self, v: Vec<bool>)

source

pub fn mut_water_stagnant(&mut self) -> &mut Vec<bool>

source

pub fn take_water_stagnant(&mut self) -> Vec<bool>

source

pub fn get_water_salt(&self) -> &[bool]

source

pub fn clear_water_salt(&mut self)

source

pub fn set_water_salt(&mut self, v: Vec<bool>)

source

pub fn mut_water_salt(&mut self) -> &mut Vec<bool>

source

pub fn take_water_salt(&mut self) -> Vec<bool>

source

pub fn get_construction_items(&self) -> &[MatPair]

source

pub fn clear_construction_items(&mut self)

source

pub fn set_construction_items(&mut self, v: RepeatedField<MatPair>)

source

pub fn mut_construction_items(&mut self) -> &mut RepeatedField<MatPair>

source

pub fn take_construction_items(&mut self) -> RepeatedField<MatPair>

source

pub fn get_buildings(&self) -> &[BuildingInstance]

source

pub fn clear_buildings(&mut self)

source

pub fn set_buildings(&mut self, v: RepeatedField<BuildingInstance>)

source

pub fn mut_buildings(&mut self) -> &mut RepeatedField<BuildingInstance>

source

pub fn take_buildings(&mut self) -> RepeatedField<BuildingInstance>

source

pub fn get_tree_percent(&self) -> &[i32]

source

pub fn clear_tree_percent(&mut self)

source

pub fn set_tree_percent(&mut self, v: Vec<i32>)

source

pub fn mut_tree_percent(&mut self) -> &mut Vec<i32>

source

pub fn take_tree_percent(&mut self) -> Vec<i32>

source

pub fn get_tree_x(&self) -> &[i32]

source

pub fn clear_tree_x(&mut self)

source

pub fn set_tree_x(&mut self, v: Vec<i32>)

source

pub fn mut_tree_x(&mut self) -> &mut Vec<i32>

source

pub fn take_tree_x(&mut self) -> Vec<i32>

source

pub fn get_tree_y(&self) -> &[i32]

source

pub fn clear_tree_y(&mut self)

source

pub fn set_tree_y(&mut self, v: Vec<i32>)

source

pub fn mut_tree_y(&mut self) -> &mut Vec<i32>

source

pub fn take_tree_y(&mut self) -> Vec<i32>

source

pub fn get_tree_z(&self) -> &[i32]

source

pub fn clear_tree_z(&mut self)

source

pub fn set_tree_z(&mut self, v: Vec<i32>)

source

pub fn mut_tree_z(&mut self) -> &mut Vec<i32>

source

pub fn take_tree_z(&mut self) -> Vec<i32>

source

pub fn get_tile_dig_designation(&self) -> &[TileDigDesignation]

source

pub fn clear_tile_dig_designation(&mut self)

source

pub fn set_tile_dig_designation(&mut self, v: Vec<TileDigDesignation>)

source

pub fn mut_tile_dig_designation(&mut self) -> &mut Vec<TileDigDesignation>

source

pub fn take_tile_dig_designation(&mut self) -> Vec<TileDigDesignation>

source

pub fn get_spatterPile(&self) -> &[SpatterPile]

source

pub fn clear_spatterPile(&mut self)

source

pub fn set_spatterPile(&mut self, v: RepeatedField<SpatterPile>)

source

pub fn mut_spatterPile(&mut self) -> &mut RepeatedField<SpatterPile>

source

pub fn take_spatterPile(&mut self) -> RepeatedField<SpatterPile>

source

pub fn get_items(&self) -> &[Item]

source

pub fn clear_items(&mut self)

source

pub fn set_items(&mut self, v: RepeatedField<Item>)

source

pub fn mut_items(&mut self) -> &mut RepeatedField<Item>

source

pub fn take_items(&mut self) -> RepeatedField<Item>

source

pub fn get_tile_dig_designation_marker(&self) -> &[bool]

source

pub fn clear_tile_dig_designation_marker(&mut self)

source

pub fn set_tile_dig_designation_marker(&mut self, v: Vec<bool>)

source

pub fn mut_tile_dig_designation_marker(&mut self) -> &mut Vec<bool>

source

pub fn take_tile_dig_designation_marker(&mut self) -> Vec<bool>

source

pub fn get_tile_dig_designation_auto(&self) -> &[bool]

source

pub fn clear_tile_dig_designation_auto(&mut self)

source

pub fn set_tile_dig_designation_auto(&mut self, v: Vec<bool>)

source

pub fn mut_tile_dig_designation_auto(&mut self) -> &mut Vec<bool>

source

pub fn take_tile_dig_designation_auto(&mut self) -> Vec<bool>

source

pub fn get_grass_percent(&self) -> &[i32]

source

pub fn clear_grass_percent(&mut self)

source

pub fn set_grass_percent(&mut self, v: Vec<i32>)

source

pub fn mut_grass_percent(&mut self) -> &mut Vec<i32>

source

pub fn take_grass_percent(&mut self) -> Vec<i32>

source

pub fn get_flows(&self) -> &[FlowInfo]

source

pub fn clear_flows(&mut self)

source

pub fn set_flows(&mut self, v: RepeatedField<FlowInfo>)

source

pub fn mut_flows(&mut self) -> &mut RepeatedField<FlowInfo>

source

pub fn take_flows(&mut self) -> RepeatedField<FlowInfo>

Trait Implementations§

source§

impl Clear for MapBlock

source§

fn clear(&mut self)

Clear this make, make it equivalent to newly created object.
source§

impl Clone for MapBlock

source§

fn clone(&self) -> MapBlock

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MapBlock

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for &'a MapBlock

source§

fn default() -> &'a MapBlock

Returns the “default value” for a type. Read more
source§

impl Default for MapBlock

source§

fn default() -> MapBlock

Returns the “default value” for a type. Read more
source§

impl Message for MapBlock

source§

fn is_initialized(&self) -> bool

True iff all required fields are initialized. Always returns true for protobuf 3.
source§

fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>

Update this message object with fields read from given stream.
source§

fn compute_size(&self) -> u32

Compute and cache size of this message and all nested messages
source§

fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_> ) -> ProtobufResult<()>

Write message to the stream. Read more
source§

fn get_cached_size(&self) -> u32

Get size previously computed by compute_size.
source§

fn get_unknown_fields(&self) -> &UnknownFields

Get a reference to unknown fields.
source§

fn mut_unknown_fields(&mut self) -> &mut UnknownFields

Get a mutable reference to unknown fields.
source§

fn as_any(&self) -> &dyn Any

View self as Any.
source§

fn as_any_mut(&mut self) -> &mut dyn Any

View self as mutable Any.
source§

fn into_any(self: Box<Self>) -> Box<dyn Any>

Convert boxed self to boxed Any.
source§

fn descriptor(&self) -> &'static MessageDescriptor

Message descriptor for this message, used for reflection.
source§

fn new() -> MapBlock

Create an empty message object. Read more
source§

fn descriptor_static() -> &'static MessageDescriptor

Get message descriptor for message type. Read more
source§

fn default_instance() -> &'static MapBlock

Return a pointer to default immutable message with static lifetime. Read more
source§

fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where Self: Sized,

Parse message from stream.
source§

fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>

Write the message to the stream. Read more
source§

fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint.
source§

fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8, Global> ) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint.
source§

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.
source§

fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where Self: Sized,

Parse message from reader. Parse stops on EOF or when error encountered.
source§

fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where Self: Sized,

Parse message from byte array.
source§

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.
source§

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.
source§

fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>

Write the message to bytes vec.
source§

fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>

Write the message to bytes vec.
source§

fn write_length_delimited_to_writer( &self, w: &mut dyn Write ) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint.
source§

fn write_length_delimited_to_bytes( &self ) -> Result<Vec<u8, Global>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint.
source§

fn type_id(&self) -> TypeId

Get type id for downcasting.
source§

impl PartialEq<MapBlock> for MapBlock

source§

fn eq(&self, other: &MapBlock) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ProtobufValue for MapBlock

source§

fn as_ref(&self) -> ReflectValueRef<'_>

As ref
source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert to Any
source§

fn is_non_zero(&self) -> bool

Is value non-zero?
source§

fn as_ref_copy(&self) -> ReflectValueRef<'static>

Return ProtobufValueRef if self is Copy. Read more
source§

impl StructuralPartialEq for MapBlock

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.