pub struct RegionLinks { /* private fields */ }Expand description
What a region refers to beyond the map: AI objects of the world mirror.
Implementations§
Source§impl RegionLinks
impl RegionLinks
Sourcepub fn set_settlement(&mut self, val: u32) -> &mut Self
pub fn set_settlement(&mut self, val: u32) -> &mut Self
Component of the region’s settlement (land regions).
Sourcepub fn set_boundaries(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_boundaries(&mut self, val: Vec<u32>) -> &mut Self
Components of the region’s boundaries.
Sourcepub fn set_mobiles(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_mobiles(&mut self, val: Vec<u32>) -> &mut Self
Components of the armies and fleets in the region.
Sourcepub fn set_world_id(&mut self, val: u32) -> &mut Self
pub fn set_world_id(&mut self, val: u32) -> &mut Self
World id of the region (land regions).
Sourcepub fn set_province(&mut self, val: u32) -> &mut Self
pub fn set_province(&mut self, val: u32) -> &mut Self
Component of the region’s province (land regions).
Sourcepub fn set_sea_index(&mut self, val: u32) -> &mut Self
pub fn set_sea_index(&mut self, val: u32) -> &mut Self
Index of the sea region (seas).
Sourcepub fn set_port_regions(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_port_regions(&mut self, val: Vec<u32>) -> &mut Self
Components of the land regions with a port on this sea (seas).
Sourcepub fn set_port_sea(&mut self, val: u32) -> &mut Self
pub fn set_port_sea(&mut self, val: u32) -> &mut Self
Component of the sea this region’s port opens to (land regions).
Sourcepub fn set_faction_seas(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_faction_seas(&mut self, val: Vec<u32>) -> &mut Self
Components of the factions’ views of this sea (seas).
Sourcepub fn set_victory_factions(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_victory_factions(&mut self, val: Vec<u32>) -> &mut Self
Components of the factions with this region among their victory conditions.
Trait Implementations§
Source§impl Clone for RegionLinks
impl Clone for RegionLinks
Source§fn clone(&self) -> RegionLinks
fn clone(&self) -> RegionLinks
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 RegionLinks
impl Debug for RegionLinks
Source§impl Default for RegionLinks
impl Default for RegionLinks
Source§fn default() -> RegionLinks
fn default() -> RegionLinks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegionLinks
impl RefUnwindSafe for RegionLinks
impl Send for RegionLinks
impl Sync for RegionLinks
impl Unpin for RegionLinks
impl UnsafeUnpin for RegionLinks
impl UnwindSafe for RegionLinks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for T
impl<T> MaybeSync for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.