pub struct Faction {
pub users: UserGroup,
pub power: f32,
pub claims: Vec<(i32, i32, i32)>,
pub power_boost: f32,
}Expand description
A team with the ability to claim ownership over terrain. WIP
Fields§
§users: UserGroupThe group of users that this faction is composed of.
power: f32The 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: f32A value added to the calculated power value.
Implementations§
Source§impl Faction
impl Faction
Sourcepub fn claim_from(
&mut self,
_other: &mut Faction,
_settings: &FactionSettings,
) -> FactionResult
pub fn claim_from( &mut self, _other: &mut Faction, _settings: &FactionSettings, ) -> FactionResult
Claim terrain from another faction.
Auto Trait Implementations§
impl Freeze for Faction
impl RefUnwindSafe for Faction
impl Send for Faction
impl Sync for Faction
impl Unpin for Faction
impl UnwindSafe for Faction
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