Struct game_features::Faction [−][src]
A team with the ability to claim ownership over terrain. WIP
Fields
users: UserGroup
The group of users that this faction is composed of.
power: f32
The claiming power of this faction. Limits the number of claims it can have and maintain.
claims: Vec<(i32, i32, i32)>
All the claims owned by this faction.
power_boost: f32
A value added to the calculated power value.
Implementations
impl Faction
[src]
pub fn claim_from(
&mut self,
_other: &mut Faction,
_settings: &FactionSettings
) -> FactionResult
[src]
&mut self,
_other: &mut Faction,
_settings: &FactionSettings
) -> FactionResult
Claim terrain from another faction.
Auto Trait Implementations
impl RefUnwindSafe for Faction
impl Send for Faction
impl Sync for Faction
impl Unpin for Faction
impl UnwindSafe for Faction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,