pub struct LineageNode {
character: Shared<GameObjectEntity<Character>>,
date: Date,
score: i32,
prestige: i32,
piety: i32,
dread: f32,
lifestyle: Option<Rc<str>>,
perks: Vec<Rc<str>>,
}
Expand description
A struct representing a lineage node in the game
Fields§
§character: Shared<GameObjectEntity<Character>>
§date: Date
§score: i32
§prestige: i32
§piety: i32
§dread: f32
§lifestyle: Option<Rc<str>>
§perks: Vec<Rc<str>>
Implementations§
Source§impl LineageNode
impl LineageNode
Sourcepub fn get_character(&self) -> Shared<GameObjectEntity<Character>>
pub fn get_character(&self) -> Shared<GameObjectEntity<Character>>
Gets the character associated with the lineage node
Trait Implementations§
Source§impl FromGameObject for LineageNode
impl FromGameObject for LineageNode
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 LineageNode
impl GameObjectDerived for LineageNode
Source§impl Localizable for LineageNode
impl Localizable for LineageNode
Auto Trait Implementations§
impl Freeze for LineageNode
impl !RefUnwindSafe for LineageNode
impl !Send for LineageNode
impl !Sync for LineageNode
impl Unpin for LineageNode
impl !UnwindSafe for LineageNode
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