pub struct BuildingInstance {Show 15 fields
pub index: i32,
pub pos_x_min: Option<i32>,
pub pos_y_min: Option<i32>,
pub pos_z_min: Option<i32>,
pub pos_x_max: Option<i32>,
pub pos_y_max: Option<i32>,
pub pos_z_max: Option<i32>,
pub building_type: Option<BuildingType>,
pub material: Option<MatPair>,
pub building_flags: Option<u32>,
pub is_room: Option<bool>,
pub room: Option<BuildingExtents>,
pub direction: Option<i32>,
pub items: Vec<BuildingItem>,
pub active: Option<i32>,
}Fields§
§index: i32§pos_x_min: Option<i32>§pos_y_min: Option<i32>§pos_z_min: Option<i32>§pos_x_max: Option<i32>§pos_y_max: Option<i32>§pos_z_max: Option<i32>§building_type: Option<BuildingType>§material: Option<MatPair>§building_flags: Option<u32>§is_room: Option<bool>§room: Option<BuildingExtents>§direction: Option<i32>Doesn’t mean anything for most buildings
items: Vec<BuildingItem>§active: Option<i32>Implementations§
Source§impl BuildingInstance
impl BuildingInstance
Sourcepub fn pos_x_min(&self) -> i32
pub fn pos_x_min(&self) -> i32
Returns the value of pos_x_min, or the default value if pos_x_min is unset.
Sourcepub fn pos_y_min(&self) -> i32
pub fn pos_y_min(&self) -> i32
Returns the value of pos_y_min, or the default value if pos_y_min is unset.
Sourcepub fn pos_z_min(&self) -> i32
pub fn pos_z_min(&self) -> i32
Returns the value of pos_z_min, or the default value if pos_z_min is unset.
Sourcepub fn pos_x_max(&self) -> i32
pub fn pos_x_max(&self) -> i32
Returns the value of pos_x_max, or the default value if pos_x_max is unset.
Sourcepub fn pos_y_max(&self) -> i32
pub fn pos_y_max(&self) -> i32
Returns the value of pos_y_max, or the default value if pos_y_max is unset.
Sourcepub fn pos_z_max(&self) -> i32
pub fn pos_z_max(&self) -> i32
Returns the value of pos_z_max, or the default value if pos_z_max is unset.
Sourcepub fn building_flags(&self) -> u32
pub fn building_flags(&self) -> u32
Returns the value of building_flags, or the default value if building_flags is unset.
Sourcepub fn is_room(&self) -> bool
pub fn is_room(&self) -> bool
Returns the value of is_room, or the default value if is_room is unset.
Sourcepub fn direction(&self) -> BuildingDirection
pub fn direction(&self) -> BuildingDirection
Returns the enum value of direction, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_direction(&mut self, value: BuildingDirection)
pub fn set_direction(&mut self, value: BuildingDirection)
Sets direction to the provided enum value.
Trait Implementations§
Source§impl Clone for BuildingInstance
impl Clone for BuildingInstance
Source§fn clone(&self) -> BuildingInstance
fn clone(&self) -> BuildingInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildingInstance
impl Debug for BuildingInstance
Source§impl Default for BuildingInstance
impl Default for BuildingInstance
Source§impl Message for BuildingInstance
impl Message for BuildingInstance
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl Name for BuildingInstance
impl Name for BuildingInstance
Source§const NAME: &'static str = "BuildingInstance"
const NAME: &'static str = "BuildingInstance"
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"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
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.