pub enum GroupFormationsFormat {
Shogun2,
Rome2,
Troy,
Warhammer3,
}Expand description
Binary layout of a Group Formations file, which depends on the game it belongs to.
Variants§
Shogun2
Shogun 2.
Rome2
Rome 2, Attila and Thrones of Britannia.
Troy
Troy and Pharaoh.
Warhammer3
Three Kingdoms and Warhammer 3.
Implementations§
Source§impl GroupFormationsFormat
impl GroupFormationsFormat
Sourcepub fn has_ai_supported_factions(&self) -> bool
pub fn has_ai_supported_factions(&self) -> bool
Returns if formations in this format have a list of supported factions.
Sourcepub fn has_ai_supported_subcultures(&self) -> bool
pub fn has_ai_supported_subcultures(&self) -> bool
Returns if formations in this format have a list of supported subcultures.
Sourcepub fn has_formation_uk_2(&self) -> bool
pub fn has_formation_uk_2(&self) -> bool
Returns if formations in this format have the uk_2 field.
Sourcepub fn has_entity_weight(&self) -> bool
pub fn has_entity_weight(&self) -> bool
Returns if entity preferences in this format have an entity weight.
Sourcepub fn has_entity_class(&self) -> bool
pub fn has_entity_class(&self) -> bool
Returns if entity preferences in this format have the uk_1 and entity_class fields.
Sourcepub fn default_ai_purpose(&self) -> AIPurpose
pub fn default_ai_purpose(&self) -> AIPurpose
Returns an empty set of AI purpose flags of the version used by this format.
Sourcepub fn entities(&self) -> Vec<Entity>
pub fn entities(&self) -> Vec<Entity>
Returns all the entity types of the version used by this format.
Sourcepub fn default_entity(&self) -> Entity
pub fn default_entity(&self) -> Entity
Returns the default entity type of the version used by this format.
Trait Implementations§
Source§impl Clone for GroupFormationsFormat
impl Clone for GroupFormationsFormat
Source§fn clone(&self) -> GroupFormationsFormat
fn clone(&self) -> GroupFormationsFormat
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 moreimpl Copy for GroupFormationsFormat
Source§impl Debug for GroupFormationsFormat
impl Debug for GroupFormationsFormat
impl Eq for GroupFormationsFormat
Source§impl PartialEq for GroupFormationsFormat
impl PartialEq for GroupFormationsFormat
impl StructuralPartialEq for GroupFormationsFormat
Auto Trait Implementations§
impl Freeze for GroupFormationsFormat
impl RefUnwindSafe for GroupFormationsFormat
impl Send for GroupFormationsFormat
impl Sync for GroupFormationsFormat
impl Unpin for GroupFormationsFormat
impl UnsafeUnpin for GroupFormationsFormat
impl UnwindSafe for GroupFormationsFormat
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,
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 more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
§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.