pub struct TriggerStoneTemplate {
pub id: StoneTemplateId,
pub name: I18nString,
pub description: I18nString,
pub tier: StoneTier,
pub condition: TriggerCondition,
pub condition_value: i64,
pub condition_window_ticks: u64,
pub gauge_gain: f64,
pub active: bool,
pub stats: Vec<StoneStat>,
pub icon_path: String,
pub power_proc_rate: f64,
}Expand description
One entry of the Trigger Stone catalog.
Fields§
§id: StoneTemplateId§name: I18nString§description: I18nString§tier: StoneTierTier drives the gauge weight and the shape of the condition — not how hard the stone is to farm.
condition: TriggerCondition§condition_value: i64Numeric parameter of the condition: streak length, counter period,
target count or percentage, depending on Self::condition. 0 for
the conditions that take no number.
condition_window_ticks: u64Length of the window the condition is defined over, in ticks
(milliseconds). Positive exactly for the three windowed conditions
(TriggerCondition::needs_window), 0 for every other trigger —
GameConfig::validate_stones enforces the pairing.
gauge_gain: f64BAL-027: this trigger’s own Flip-gauge award per successful fire. The tier-wide ladder is gone — a reliable condition earns less per proc, a rare once-per-phase one earns more, and tier by itself grants nothing.
active: boolWhether the runtime evaluates this trigger at all.
A switched-off trigger stays in config and in the UI catalog, but is never evaluated, never fires and never contributes to the gauge — the designer’s switch for content that should wait.
stats: Vec<StoneStat>Passive stats granted while this stone sits in a socket, on top of what its condition does. A trigger’s upgrade level scales these — which is, today, the only thing a trigger’s level does.
icon_path: String§power_proc_rate: f64Trait Implementations§
Source§impl Clone for TriggerStoneTemplate
impl Clone for TriggerStoneTemplate
Source§fn clone(&self) -> TriggerStoneTemplate
fn clone(&self) -> TriggerStoneTemplate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TriggerStoneTemplate
impl Debug for TriggerStoneTemplate
Source§impl<'de> Deserialize<'de> for TriggerStoneTemplate
impl<'de> Deserialize<'de> for TriggerStoneTemplate
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<TriggerStoneTemplate> for JsValuewhere
TriggerStoneTemplate: Serialize,
impl From<TriggerStoneTemplate> for JsValuewhere
TriggerStoneTemplate: Serialize,
Source§fn from(value: TriggerStoneTemplate) -> Self
fn from(value: TriggerStoneTemplate) -> Self
Source§impl FromWasmAbi for TriggerStoneTemplatewhere
Self: DeserializeOwned,
impl FromWasmAbi for TriggerStoneTemplatewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for TriggerStoneTemplatewhere
TriggerStoneTemplate: Serialize,
impl IntoWasmAbi for TriggerStoneTemplatewhere
TriggerStoneTemplate: Serialize,
Source§impl JsonSchema for TriggerStoneTemplate
impl JsonSchema for TriggerStoneTemplate
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 TriggerStoneTemplatewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for TriggerStoneTemplatewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for TriggerStoneTemplatewhere
TriggerStoneTemplate: Serialize,
impl OptionIntoWasmAbi for TriggerStoneTemplatewhere
TriggerStoneTemplate: Serialize,
Source§impl RefFromWasmAbi for TriggerStoneTemplatewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for TriggerStoneTemplatewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<TriggerStoneTemplate>
type Anchor = SelfOwner<TriggerStoneTemplate>
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 TriggerStoneTemplate
impl Serialize for TriggerStoneTemplate
Source§impl Tsify for TriggerStoneTemplate
impl Tsify for TriggerStoneTemplate
const DECL: &'static str = "/**\n * One entry of the Trigger Stone catalog.\n */\nexport interface TriggerStoneTemplate {\n id: StoneTemplateId;\n name: I18nString;\n description: I18nString;\n /**\n * Tier drives the gauge weight and the shape of the condition \u{2014} not how\n * hard the stone is to farm.\n */\n tier: StoneTier;\n condition: TriggerCondition;\n /**\n * Numeric parameter of the condition: streak length, counter period,\n * target count or percentage, depending on [`Self::condition`]. `0` for\n * the conditions that take no number.\n */\n condition_value: number;\n /**\n * Length of the window the condition is defined over, in ticks\n * (milliseconds). Positive exactly for the three windowed conditions\n * (`TriggerCondition::needs_window`), `0` for every other trigger \u{2014}\n * `GameConfig::validate_stones` enforces the pairing.\n */\n condition_window_ticks: number;\n /**\n * BAL-027: this trigger\\\'s own Flip-gauge award per successful fire. The\n * tier-wide ladder is gone \u{2014} a reliable condition earns less per proc, a\n * rare once-per-phase one earns more, and tier by itself grants nothing.\n */\n gauge_gain: number;\n /**\n * Whether the runtime evaluates this trigger at all.\n *\n * A switched-off trigger stays in config and in the UI catalog, but is\n * never evaluated, never fires and never contributes to the gauge \u{2014} the\n * designer\\\'s switch for content that should wait.\n */\n active: boolean;\n /**\n * Passive stats granted while this stone sits in a socket, on top of what\n * its condition does. A trigger\\\'s upgrade level scales these \u{2014} which is,\n * today, the only thing a trigger\\\'s level does.\n */\n stats: StoneStat[];\n icon_path: string;\n power_proc_rate: 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 TriggerStoneTemplatewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for TriggerStoneTemplatewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for TriggerStoneTemplatewhere
TriggerStoneTemplate: Serialize,
impl VectorIntoWasmAbi for TriggerStoneTemplatewhere
TriggerStoneTemplate: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for TriggerStoneTemplate
impl WasmDescribeVector for TriggerStoneTemplate
Auto Trait Implementations§
impl Freeze for TriggerStoneTemplate
impl RefUnwindSafe for TriggerStoneTemplate
impl Send for TriggerStoneTemplate
impl Sync for TriggerStoneTemplate
impl Unpin for TriggerStoneTemplate
impl UnwindSafe for TriggerStoneTemplate
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.