pub struct Wizform {Show 16 fields
pub id: String,
pub game_id: String,
pub model: String,
pub name: String,
pub desc: String,
pub element: WizformElementType,
pub magics: Vec<Magic>,
pub number: u16,
pub hitpoints: i32,
pub agility: i32,
pub jump_ability: i32,
pub precision: i32,
pub evolution_form: i32,
pub evolution_level: i32,
pub voice_type: i32,
pub exp_modifier: i32,
}Expand description
Represents a wizform parsed from the game files
Fields§
§id: String§game_id: String§model: String§name: StringId of name text in game texts
desc: StringId of desc text in game texts
element: WizformElementType§magics: Vec<Magic>§number: u16§hitpoints: i32§agility: i32§jump_ability: i32§precision: i32§evolution_form: i32Number of wizform this one evolutes into (-501 if no evolution)
evolution_level: i32Level this wizform evolutes(-1 if no evolution)
voice_type: i32§exp_modifier: i32Implementations§
source§impl Wizform
impl Wizform
pub fn new() -> Self
pub fn id(self, id: String) -> Self
pub fn model(self, model_id: String) -> Self
pub fn name(self, name_id: String) -> Self
pub fn desc(self, desc_id: String) -> Self
pub fn element(self, element: u8) -> Self
pub fn magics(self, magics: Vec<Magic>) -> Self
pub fn number(self, number: u16) -> Self
pub fn hitpoints(self, hp: i32) -> Self
pub fn agility(self, agility: i32) -> Self
pub fn jump_ability(self, jump: i32) -> Self
pub fn precision(self, precision: i32) -> Self
pub fn evolution_form(self, evo_form_number: i32) -> Self
pub fn evolution_level(self, evo_level: i32) -> Self
pub fn voice(self, voice: i32) -> Self
pub fn exp_modifier(self, modifier: i32) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Wizform
impl<'de> Deserialize<'de> for Wizform
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Wizform
impl RefUnwindSafe for Wizform
impl Send for Wizform
impl Sync for Wizform
impl Unpin for Wizform
impl UnwindSafe for Wizform
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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