pub struct TalentUnlockCondition {
pub required_talents: Vec<TalentId>,
pub required_points: i64,
}Expand description
Условие разблокировки таланта
Fields§
§required_talents: Vec<TalentId>Список талантов, которые должны быть полностью изучены (пустой = нет требований)
required_points: i64Минимальное суммарное количество вложенных очков талантов (0 = нет требований)
Trait Implementations§
Source§impl Clone for TalentUnlockCondition
impl Clone for TalentUnlockCondition
Source§fn clone(&self) -> TalentUnlockCondition
fn clone(&self) -> TalentUnlockCondition
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 TalentUnlockCondition
impl Debug for TalentUnlockCondition
Source§impl<'de> Deserialize<'de> for TalentUnlockCondition
impl<'de> Deserialize<'de> for TalentUnlockCondition
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 TalentUnlockCondition
impl JsonSchema for TalentUnlockCondition
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 TalentUnlockCondition
impl Serialize for TalentUnlockCondition
Source§impl Tsify for TalentUnlockCondition
impl Tsify for TalentUnlockCondition
const DECL: &'static str = "/**\n * \u{423}\u{441}\u{43b}\u{43e}\u{432}\u{438}\u{435} \u{440}\u{430}\u{437}\u{431}\u{43b}\u{43e}\u{43a}\u{438}\u{440}\u{43e}\u{432}\u{43a}\u{438} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430}\n */\nexport interface TalentUnlockCondition {\n /**\n * \u{421}\u{43f}\u{438}\u{441}\u{43e}\u{43a} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{43e}\u{432}, \u{43a}\u{43e}\u{442}\u{43e}\u{440}\u{44b}\u{435} \u{434}\u{43e}\u{43b}\u{436}\u{43d}\u{44b} \u{431}\u{44b}\u{442}\u{44c} \u{43f}\u{43e}\u{43b}\u{43d}\u{43e}\u{441}\u{442}\u{44c}\u{44e} \u{438}\u{437}\u{443}\u{447}\u{435}\u{43d}\u{44b} (\u{43f}\u{443}\u{441}\u{442}\u{43e}\u{439} = \u{43d}\u{435}\u{442} \u{442}\u{440}\u{435}\u{431}\u{43e}\u{432}\u{430}\u{43d}\u{438}\u{439})\n */\n required_talents: TalentId[];\n /**\n * \u{41c}\u{438}\u{43d}\u{438}\u{43c}\u{430}\u{43b}\u{44c}\u{43d}\u{43e}\u{435} \u{441}\u{443}\u{43c}\u{43c}\u{430}\u{440}\u{43d}\u{43e}\u{435} \u{43a}\u{43e}\u{43b}\u{438}\u{447}\u{435}\u{441}\u{442}\u{432}\u{43e} \u{432}\u{43b}\u{43e}\u{436}\u{435}\u{43d}\u{43d}\u{44b}\u{445} \u{43e}\u{447}\u{43a}\u{43e}\u{432} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{43e}\u{432} (0 = \u{43d}\u{435}\u{442} \u{442}\u{440}\u{435}\u{431}\u{43e}\u{432}\u{430}\u{43d}\u{438}\u{439})\n */\n required_points: number;\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 TalentUnlockCondition
impl RefUnwindSafe for TalentUnlockCondition
impl Send for TalentUnlockCondition
impl Sync for TalentUnlockCondition
impl Unpin for TalentUnlockCondition
impl UnwindSafe for TalentUnlockCondition
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