pub struct WorldMap {Show 25 fields
pub world_width: i32,
pub world_height: i32,
pub name: Option<Vec<u8>>,
pub name_english: Option<String>,
pub elevation: Vec<i32>,
pub rainfall: Vec<i32>,
pub vegetation: Vec<i32>,
pub temperature: Vec<i32>,
pub evilness: Vec<i32>,
pub drainage: Vec<i32>,
pub volcanism: Vec<i32>,
pub savagery: Vec<i32>,
pub clouds: Vec<Cloud>,
pub salinity: Vec<i32>,
pub map_x: Option<i32>,
pub map_y: Option<i32>,
pub center_x: Option<i32>,
pub center_y: Option<i32>,
pub center_z: Option<i32>,
pub cur_year: Option<i32>,
pub cur_year_tick: Option<i32>,
pub world_poles: Option<i32>,
pub river_tiles: Vec<RiverTile>,
pub water_elevation: Vec<i32>,
pub region_tiles: Vec<RegionTile>,
}Fields§
§world_width: i32§world_height: i32§name: Option<Vec<u8>>§name_english: Option<String>§elevation: Vec<i32>§rainfall: Vec<i32>§vegetation: Vec<i32>§temperature: Vec<i32>§evilness: Vec<i32>§drainage: Vec<i32>§volcanism: Vec<i32>§savagery: Vec<i32>§clouds: Vec<Cloud>§salinity: Vec<i32>§map_x: Option<i32>§map_y: Option<i32>§center_x: Option<i32>§center_y: Option<i32>§center_z: Option<i32>§cur_year: Option<i32>§cur_year_tick: Option<i32>§world_poles: Option<i32>§river_tiles: Vec<RiverTile>§water_elevation: Vec<i32>§region_tiles: Vec<RegionTile>Implementations§
Source§impl WorldMap
impl WorldMap
Sourcepub fn name(&self) -> &[u8] ⓘ
pub fn name(&self) -> &[u8] ⓘ
Returns the value of name, or the default value if name is unset.
Sourcepub fn name_english(&self) -> &str
pub fn name_english(&self) -> &str
Returns the value of name_english, or the default value if name_english is unset.
Sourcepub fn center_x(&self) -> i32
pub fn center_x(&self) -> i32
Returns the value of center_x, or the default value if center_x is unset.
Sourcepub fn center_y(&self) -> i32
pub fn center_y(&self) -> i32
Returns the value of center_y, or the default value if center_y is unset.
Sourcepub fn center_z(&self) -> i32
pub fn center_z(&self) -> i32
Returns the value of center_z, or the default value if center_z is unset.
Sourcepub fn cur_year(&self) -> i32
pub fn cur_year(&self) -> i32
Returns the value of cur_year, or the default value if cur_year is unset.
Sourcepub fn cur_year_tick(&self) -> i32
pub fn cur_year_tick(&self) -> i32
Returns the value of cur_year_tick, or the default value if cur_year_tick is unset.
Sourcepub fn world_poles(&self) -> WorldPoles
pub fn world_poles(&self) -> WorldPoles
Returns the enum value of world_poles, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_world_poles(&mut self, value: WorldPoles)
pub fn set_world_poles(&mut self, value: WorldPoles)
Sets world_poles to the provided enum value.
Trait Implementations§
Source§impl Message for WorldMap
impl Message for WorldMap
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl Name for WorldMap
impl Name for WorldMap
Source§const NAME: &'static str = "WorldMap"
const NAME: &'static str = "WorldMap"
Simple name for this
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "RemoteFortressReader"
const PACKAGE: &'static str = "RemoteFortressReader"
Package name this message type is contained in. They are domain-like
and delimited by
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Fully-qualified unique name for this
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.impl StructuralPartialEq for WorldMap
Auto Trait Implementations§
impl Freeze for WorldMap
impl RefUnwindSafe for WorldMap
impl Send for WorldMap
impl Sync for WorldMap
impl Unpin for WorldMap
impl UnsafeUnpin for WorldMap
impl UnwindSafe for WorldMap
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