pub struct CaiPlan { /* private fields */ }Expand description
Component ids of the AI objects.
Implementations§
Source§impl CaiPlan
impl CaiPlan
Sourcepub fn factions(&self) -> &Vec<FactionIds>
pub fn factions(&self) -> &Vec<FactionIds>
Ids of each faction, in world order, then the rebels.
Sourcepub fn settlements(&self) -> &HashMap<usize, SettlementIds>
pub fn settlements(&self) -> &HashMap<usize, SettlementIds>
Ids of each land region’s settlement, by map region index.
Sourcepub fn boundaries(&self) -> &Vec<BoundaryIds>
pub fn boundaries(&self) -> &Vec<BoundaryIds>
Region boundaries, in creation order.
Sourcepub fn characters(&self) -> &Vec<Vec<CharacterIds>>
pub fn characters(&self) -> &Vec<Vec<CharacterIds>>
Ids of each character, by world faction position, in CHARACTER_ARRAY order.
Sourcepub fn provinces(&self) -> &Vec<ProvinceIds>
pub fn provinces(&self) -> &Vec<ProvinceIds>
Ids of each province, in world order.
Sourcepub fn faction_seas(&self) -> &Vec<Vec<u32>>
pub fn faction_seas(&self) -> &Vec<Vec<u32>>
Ids of the factions’ views of each sea, by world sea position, in manager order.
Sourcepub fn governorships(&self) -> &Vec<u32>
pub fn governorships(&self) -> &Vec<u32>
Id of each faction’s governorship, in world order.
Sourcepub fn managers(&self) -> &Vec<ManagerIds>
pub fn managers(&self) -> &Vec<ManagerIds>
Ids of the AI managers of the factions owning regions or mobiles, in factions order (the rebels always have
one).
Sourcepub fn manager_kinds(&self) -> &Vec<ManagerKind>
pub fn manager_kinds(&self) -> &Vec<ManagerKind>
Kind of AI manager of each faction, in factions order.
Source§impl CaiPlan
impl CaiPlan
Sourcepub fn first_central_desire(&self) -> u32
pub fn first_central_desire(&self) -> u32
Id of the first central desire.
Sourcepub fn first_trade_segment(&self) -> u32
pub fn first_trade_segment(&self) -> u32
Id of the first trade route segment (one per trade spline, in spline order).
Sourcepub fn first_trade_route(&self) -> u32
pub fn first_trade_route(&self) -> u32
Id of the first international trade route (one per route, in route id order).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaiPlan
impl RefUnwindSafe for CaiPlan
impl Send for CaiPlan
impl Sync for CaiPlan
impl Unpin for CaiPlan
impl UnsafeUnpin for CaiPlan
impl UnwindSafe for CaiPlan
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
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> ⓘ
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> ⓘ
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>
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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.