pub enum RegionDivideMethod {
Pangaea,
Continent,
WholeMapRectangle,
CustomRectangle(Rectangle),
}Expand description
Defines the method used to divide regions for civilizations in the game. This enum is used to determine how civilizations are assigned to different regions on the map.
Variants§
Pangaea
All civilizations start on the biggest landmass.
This method places all civs on a single, largest landmass.
Continent
Civs are assigned to continents. Any continents with more than one civ are divided.
WholeMapRectangle
This method is primarily used for Archipelago or other maps with many small islands.
The entire map is treated as one large rectangular region.
RegionDivideMethod::WholeMapRectangle is equivalent to RegionDivideMethod::CustomRectangle when Rectangle encompasses the entire map area.
We will ignore the area ID when method is set to WholeMapRectangle.
CustomRectangle(Rectangle)
Civs start within a custom-defined rectangle.
We will ignore the area ID when method is set to CustomRectangle.
Trait Implementations§
Source§impl Default for RegionDivideMethod
impl Default for RegionDivideMethod
Source§fn default() -> RegionDivideMethod
fn default() -> RegionDivideMethod
Auto Trait Implementations§
impl Freeze for RegionDivideMethod
impl RefUnwindSafe for RegionDivideMethod
impl Send for RegionDivideMethod
impl Sync for RegionDivideMethod
impl Unpin for RegionDivideMethod
impl UnsafeUnpin for RegionDivideMethod
impl UnwindSafe for RegionDivideMethod
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().