pub struct EffectStoneTemplate {Show 14 fields
pub id: StoneTemplateId,
pub name: I18nString,
pub description: I18nString,
pub tier: StoneTier,
pub action: EffectStoneAction,
pub magnitude: f64,
pub magnitude_per_level: f64,
pub secondary_magnitude: f64,
pub charges: i64,
pub duration_ticks: u64,
pub stats: Vec<StoneStat>,
pub icon_path: String,
pub power_q_base_first_rank: f64,
pub power_q_base_max_rank: f64,
}Expand description
One entry of the Effect Stone catalog.
Fields§
§id: StoneTemplateId§name: I18nString§description: I18nString§tier: StoneTier§action: EffectStoneAction§magnitude: f64Magnitude of the action at upgrade level 1, in the action’s own unit (percent, flat gauge points, multiplier).
magnitude_per_level: f64Added to magnitude per upgrade level above 1. The first copy already
carries the whole mechanic; an upgrade only scales the number.
secondary_magnitude: f64Second number a few actions need: the weaker copy of EF-L02, and any
future two-number action. 0.0 when the action takes one number.
charges: i64How many uses, hits, copies or targets the action is spent over.
Positive exactly for the charge-based actions
(EffectStoneAction::needs_charges), 0 for the rest —
GameConfig::validate_stones enforces the pairing.
duration_ticks: u64How long the state the action leaves behind lasts; 0 for instant
actions.
stats: Vec<StoneStat>Passive stats granted while this stone sits in a socket, independently of whether its side is the active one — both the Real and the Fantasy effect stone of a slot grant theirs at all times.
icon_path: String§power_q_base_first_rank: f64§power_q_base_max_rank: f64Trait Implementations§
Source§impl Clone for EffectStoneTemplate
impl Clone for EffectStoneTemplate
Source§fn clone(&self) -> EffectStoneTemplate
fn clone(&self) -> EffectStoneTemplate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EffectStoneTemplate
impl Debug for EffectStoneTemplate
Source§impl<'de> Deserialize<'de> for EffectStoneTemplate
impl<'de> Deserialize<'de> for EffectStoneTemplate
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>,
Source§impl From<EffectStoneTemplate> for JsValuewhere
EffectStoneTemplate: Serialize,
impl From<EffectStoneTemplate> for JsValuewhere
EffectStoneTemplate: Serialize,
Source§fn from(value: EffectStoneTemplate) -> Self
fn from(value: EffectStoneTemplate) -> Self
Source§impl FromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
impl FromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for EffectStoneTemplatewhere
EffectStoneTemplate: Serialize,
impl IntoWasmAbi for EffectStoneTemplatewhere
EffectStoneTemplate: Serialize,
Source§impl JsonSchema for EffectStoneTemplate
impl JsonSchema for EffectStoneTemplate
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl OptionFromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for EffectStoneTemplatewhere
EffectStoneTemplate: Serialize,
impl OptionIntoWasmAbi for EffectStoneTemplatewhere
EffectStoneTemplate: Serialize,
Source§impl RefFromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<EffectStoneTemplate>
type Anchor = SelfOwner<EffectStoneTemplate>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for EffectStoneTemplate
impl Serialize for EffectStoneTemplate
Source§impl Tsify for EffectStoneTemplate
impl Tsify for EffectStoneTemplate
const DECL: &'static str = "/**\n * One entry of the Effect Stone catalog.\n */\nexport interface EffectStoneTemplate {\n id: StoneTemplateId;\n name: I18nString;\n description: I18nString;\n tier: StoneTier;\n action: EffectStoneAction;\n /**\n * Magnitude of the action at upgrade level 1, in the action\\\'s own unit\n * (percent, flat gauge points, multiplier).\n */\n magnitude: number;\n /**\n * Added to `magnitude` per upgrade level above 1. The first copy already\n * carries the whole mechanic; an upgrade only scales the number.\n */\n magnitude_per_level: number;\n /**\n * Second number a few actions need: the weaker copy of `EF-L02`, and any\n * future two-number action. `0.0` when the action takes one number.\n */\n secondary_magnitude: number;\n /**\n * How many uses, hits, copies or targets the action is spent over.\n * Positive exactly for the charge-based actions\n * (`EffectStoneAction::needs_charges`), `0` for the rest \u{2014}\n * `GameConfig::validate_stones` enforces the pairing.\n */\n charges: number;\n /**\n * How long the state the action leaves behind lasts; `0` for instant\n * actions.\n */\n duration_ticks: number;\n /**\n * Passive stats granted while this stone sits in a socket, independently\n * of whether its side is the active one \u{2014} both the Real and the Fantasy\n * effect stone of a slot grant theirs at all times.\n */\n stats: StoneStat[];\n icon_path: string;\n power_q_base_first_rank: number;\n power_q_base_max_rank: 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>
Source§impl VectorFromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for EffectStoneTemplatewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for EffectStoneTemplatewhere
EffectStoneTemplate: Serialize,
impl VectorIntoWasmAbi for EffectStoneTemplatewhere
EffectStoneTemplate: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for EffectStoneTemplate
impl WasmDescribeVector for EffectStoneTemplate
Auto Trait Implementations§
impl Freeze for EffectStoneTemplate
impl RefUnwindSafe for EffectStoneTemplate
impl Send for EffectStoneTemplate
impl Sync for EffectStoneTemplate
impl Unpin for EffectStoneTemplate
impl UnwindSafe for EffectStoneTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.