pub struct Expansion {
pub loc: Point2,
pub center: Point2,
pub minerals: IndexSet<u64, BuildHasherDefault<FxHasher>>,
pub geysers: FxHashSet<u64>,
pub alliance: Alliance,
pub base: Option<u64>,
}Expand description
Information about an expansion location.
Fields§
§loc: Point2Placement position for townhall.
center: Point2Center of resources.
minerals: IndexSet<u64, BuildHasherDefault<FxHasher>>Tags of minaral fields belonging to the expansion. Sorted by distance to townhall in ascending order.
geysers: FxHashSet<u64>Tags of vespene geysers belonging to the expansion.
alliance: AllianceNeutral if expansion is free.
Own or Enemy when taken by you or opponent.
base: Option<u64>Tag of townhall placed on the expansion. (Only for occupied ones)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expansion
impl RefUnwindSafe for Expansion
impl Send for Expansion
impl Sync for Expansion
impl Unpin for Expansion
impl UnwindSafe for Expansion
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