[][src]Struct df_st_core::df_world::site::Site

pub struct Site {
    pub id: i32,
    pub type_: Option<String>,
    pub name: Option<String>,
    pub coord: Option<Coordinate>,
    pub rectangle: Option<Rectangle>,
    pub structures: Vec<Structure>,
    pub site_properties: Vec<SiteProperty>,
    pub civ_id: Option<i32>,
    pub cur_owner_id: Option<i32>,
}

Fields

id: i32

Identifier for the site. id must be unique for the whole world. By default the id's of Sites start with 1, not 0 as most other objects.

type_: Option<String>

Defines what type of site it is Options: cave, hamlet, forest retreat, dark fortress, town, vault, dark pits, castle, tomb, monastery, camp, lair, shrine, ...

name: Option<String>

Name of the site. name is in all lowercase.

coord: Option<Coordinate>

A coordinate for the region tile the site is in This means the coordinates are not exact and can be the same as other sites that are in the same region tile. More info can be found in Coordinate

rectangle: Option<Rectangle>structures: Vec<Structure>

A list of all remarkable structures in the site

site_properties: Vec<SiteProperty>civ_id: Option<i32>cur_owner_id: Option<i32>

Implementations

impl Site[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for Site[src]

impl Debug for Site[src]

impl Default for Site[src]

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

impl Fillable for Site[src]

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

impl<__S> GraphQLType<__S> for Site 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 Site[src]

impl JsonSchema for Site[src]

impl PartialEq<Site> for Site[src]

impl SchemaExample for Site[src]

impl Serialize for Site[src]

Auto Trait Implementations

impl RefUnwindSafe for Site

impl Send for Site

impl Sync for Site

impl Unpin for Site

impl UnwindSafe for Site

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.