pub struct TalentLevel {
pub level: i64,
pub cost: CurrencyUnit,
pub duration_sec: u64,
pub attribute_bonuses: Vec<TalentAttributeBonus>,
pub backend_modifiers: Vec<TalentBackendModifier>,
}Expand description
Уровень таланта (у каждого таланта 1-5 уровней)
Fields§
§level: i64§cost: CurrencyUnit§duration_sec: u64§attribute_bonuses: Vec<TalentAttributeBonus>Бонусы, применяемые к атрибутам сущности (HP, урон, защита и т.д.)
backend_modifiers: Vec<TalentBackendModifier>Модификаторы, обрабатываемые бэкендом напрямую (не через атрибуты и не через скрипты)
Trait Implementations§
Source§impl Clone for TalentLevel
impl Clone for TalentLevel
Source§fn clone(&self) -> TalentLevel
fn clone(&self) -> TalentLevel
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TalentLevel
impl Debug for TalentLevel
Source§impl<'de> Deserialize<'de> for TalentLevel
impl<'de> Deserialize<'de> for TalentLevel
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
Source§impl JsonSchema for TalentLevel
impl JsonSchema for TalentLevel
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for TalentLevel
impl Serialize for TalentLevel
Source§impl Tsify for TalentLevel
impl Tsify for TalentLevel
const DECL: &'static str = "/**\n * \u{423}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430} (\u{443} \u{43a}\u{430}\u{436}\u{434}\u{43e}\u{433}\u{43e} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430} 1-5 \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{435}\u{439})\n */\nexport interface TalentLevel {\n level: number;\n cost: CurrencyUnit;\n duration_sec: number;\n /**\n * \u{411}\u{43e}\u{43d}\u{443}\u{441}\u{44b}, \u{43f}\u{440}\u{438}\u{43c}\u{435}\u{43d}\u{44f}\u{435}\u{43c}\u{44b}\u{435} \u{43a} \u{430}\u{442}\u{440}\u{438}\u{431}\u{443}\u{442}\u{430}\u{43c} \u{441}\u{443}\u{449}\u{43d}\u{43e}\u{441}\u{442}\u{438} (HP, \u{443}\u{440}\u{43e}\u{43d}, \u{437}\u{430}\u{449}\u{438}\u{442}\u{430} \u{438} \u{442}.\u{434}.)\n */\n attribute_bonuses: TalentAttributeBonus[];\n /**\n * \u{41c}\u{43e}\u{434}\u{438}\u{444}\u{438}\u{43a}\u{430}\u{442}\u{43e}\u{440}\u{44b}, \u{43e}\u{431}\u{440}\u{430}\u{431}\u{430}\u{442}\u{44b}\u{432}\u{430}\u{435}\u{43c}\u{44b}\u{435} \u{431}\u{44d}\u{43a}\u{435}\u{43d}\u{434}\u{43e}\u{43c} \u{43d}\u{430}\u{43f}\u{440}\u{44f}\u{43c}\u{443}\u{44e} (\u{43d}\u{435} \u{447}\u{435}\u{440}\u{435}\u{437} \u{430}\u{442}\u{440}\u{438}\u{431}\u{443}\u{442}\u{44b} \u{438} \u{43d}\u{435} \u{447}\u{435}\u{440}\u{435}\u{437} \u{441}\u{43a}\u{440}\u{438}\u{43f}\u{442}\u{44b})\n */\n backend_modifiers: TalentBackendModifier[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for TalentLevel
impl RefUnwindSafe for TalentLevel
impl Send for TalentLevel
impl Sync for TalentLevel
impl Unpin for TalentLevel
impl UnwindSafe for TalentLevel
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