pub struct Faith {
name: Rc<str>,
tenets: Vec<Rc<str>>,
head_title: Option<Shared<GameObjectEntity<Title>>>,
head: Option<Shared<GameObjectEntity<Character>>>,
fervor: f32,
doctrines: Vec<Rc<str>>,
}
Expand description
A struct representing a faith in the game
Fields§
§name: Rc<str>
§tenets: Vec<Rc<str>>
§head_title: Option<Shared<GameObjectEntity<Title>>>
§head: Option<Shared<GameObjectEntity<Character>>>
§fervor: f32
§doctrines: Vec<Rc<str>>
Trait Implementations§
Source§impl FromGameObject for Faith
impl FromGameObject for Faith
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 Faith
impl GameObjectDerived for Faith
Source§impl Localizable for Faith
impl Localizable for Faith
Source§impl ProceduralPath for Faith
impl ProceduralPath for Faith
fn get_subdir() -> &'static str
Auto Trait Implementations§
impl Freeze for Faith
impl !RefUnwindSafe for Faith
impl !Send for Faith
impl !Sync for Faith
impl Unpin for Faith
impl !UnwindSafe for Faith
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