Struct rust_sc2::bot::Expansion [−][src]
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>,
}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 RefUnwindSafe for Expansion
impl RefUnwindSafe for Expansionimpl UnwindSafe for Expansion
impl UnwindSafe for Expansion