pub struct House {
name: Rc<str>,
parent: Shared<GameObjectEntity<Dynasty>>,
leaders: Vec<Shared<GameObjectEntity<Character>>>,
motto: Option<(Rc<str>, HashMap<i64, Rc<str>>)>,
found_date: Option<Date>,
}
Fields§
§name: Rc<str>
§parent: Shared<GameObjectEntity<Dynasty>>
§leaders: Vec<Shared<GameObjectEntity<Character>>>
§motto: Option<(Rc<str>, HashMap<i64, Rc<str>>)>
§found_date: Option<Date>
Implementations§
Source§impl House
impl House
pub fn get_faith(&self) -> Shared<GameObjectEntity<Faith>>
pub fn get_culture(&self) -> Shared<GameObjectEntity<Culture>>
pub fn get_founder(&self) -> Shared<GameObjectEntity<Character>>
pub fn get_dynasty(&self) -> Shared<GameObjectEntity<Dynasty>>
pub fn get_found_date(&self) -> Option<Date>
Trait Implementations§
Source§impl FromGameObject for House
impl FromGameObject for House
fn from_game_object( base: &HashMap<String, SaveFileValue>, game_state: &mut GameState, ) -> Result<Self, ParsingError>
fn finalize(&mut self, reference: &Shared<GameObjectEntity<Self>>)
Source§impl GameObjectDerived for House
impl GameObjectDerived for House
Source§impl Localizable for House
impl Localizable for House
Source§impl ProceduralPath for House
impl ProceduralPath for House
fn get_subdir() -> &'static str
Auto Trait Implementations§
impl Freeze for House
impl !RefUnwindSafe for House
impl !Send for House
impl !Sync for House
impl Unpin for House
impl !UnwindSafe for House
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
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>
Converts
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>
Converts
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 more