[][src]Struct df_st_core::df_world::region::Region

pub struct Region {
    pub id: i32,
    pub name: Option<String>,
    pub type_: Option<String>,
    pub coords: Vec<Coordinate>,
    pub evilness: Option<String>,
    pub force_id: Vec<i32>,
}

A Region is a section of map that has specific properties. These regions are usually described by natural features likes forest, oceans or lakes. Every region tile should be in at least one Region. Sites are thus always in at least one Region.

Fields

id: i32

Identifier for the region. id must be unique for the whole world.

name: Option<String>

Name of the region. name is in all lowercase.

type_: Option<String>

Defines what biome or natural feature the region is. Example: "Forest", "Lake", "Tundra",...

coords: Vec<Coordinate>

A list of coordinates for each square that is covered by this region More info can be found in Coordinate

evilness: Option<String>

Defines if the region is good, neutral or evil.

force_id: Vec<i32>

From DFHacK: historical figure IDs of force deities associated with the region. Number set increases during civ placement.

Implementations

impl Region[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for Region[src]

impl Debug for Region[src]

impl Default for Region[src]

impl<'de> Deserialize<'de> for Region[src]

impl Fillable for Region[src]

impl Filler<Region, Region> for Region[src]

impl<__S> GraphQLType<__S> for Region where
    __S: ScalarValue,
    &'__b __S: ScalarRefValue<'__b>, 
[src]

type Context = ()

The expected context type for this GraphQL type Read more

type TypeInfo = ()

Type that may carry additional schema information Read more

impl Hash for Region[src]

impl JsonSchema for Region[src]

impl PartialEq<Region> for Region[src]

impl SchemaExample for Region[src]

impl Serialize for Region[src]

Auto Trait Implementations

impl RefUnwindSafe for Region

impl Send for Region

impl Sync for Region

impl Unpin for Region

impl UnwindSafe for Region

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.