pub enum FlipProgressSource {
TriggerFired,
DamageDealt,
DamageReceived,
}Expand description
Server-owned producer category for normalized global-flip progress.
Future artifact or quest integrations add variants here and feed the same accumulator instead of reimplementing threshold behavior.
Trigger Stones are the only shipped producer: the gauge fills from stone
fires (weighted per trigger tier via StonesSettings.gauge_weights), so a
player with no sockets open does not flip.
Variants§
TriggerFired
One successful Trigger Stone fire. Carries both halves of a fire’s gauge
contribution: the weight of the trigger’s own tier, and whatever the
effect it ran added on top (EffectStoneAction::GaugeFill) — the effect
only runs because the trigger fired, so they share one producer.
New variants append at the tail: the variant order is the postcard tag order on the wire.
DamageDealt
BAL-026: actual HP this combatant removed from a victim, normalized by the victim’s max HP and its wave share.
DamageReceived
BAL-026: actual HP this combatant lost, normalized by its own max HP.
Trait Implementations§
Source§impl Clone for FlipProgressSource
impl Clone for FlipProgressSource
Source§fn clone(&self) -> FlipProgressSource
fn clone(&self) -> FlipProgressSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlipProgressSource
impl Debug for FlipProgressSource
Source§impl<'de> Deserialize<'de> for FlipProgressSource
impl<'de> Deserialize<'de> for FlipProgressSource
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 Display for FlipProgressSource
impl Display for FlipProgressSource
Source§impl From<FlipProgressSource> for JsValuewhere
FlipProgressSource: Serialize,
impl From<FlipProgressSource> for JsValuewhere
FlipProgressSource: Serialize,
Source§fn from(value: FlipProgressSource) -> Self
fn from(value: FlipProgressSource) -> Self
Source§impl FromStr for FlipProgressSource
impl FromStr for FlipProgressSource
Source§impl FromWasmAbi for FlipProgressSourcewhere
Self: DeserializeOwned,
impl FromWasmAbi for FlipProgressSourcewhere
Self: DeserializeOwned,
Source§impl Hash for FlipProgressSource
impl Hash for FlipProgressSource
Source§impl IntoWasmAbi for FlipProgressSourcewhere
FlipProgressSource: Serialize,
impl IntoWasmAbi for FlipProgressSourcewhere
FlipProgressSource: Serialize,
Source§impl JsonSchema for FlipProgressSource
impl JsonSchema for FlipProgressSource
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 FlipProgressSourcewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for FlipProgressSourcewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for FlipProgressSourcewhere
FlipProgressSource: Serialize,
impl OptionIntoWasmAbi for FlipProgressSourcewhere
FlipProgressSource: Serialize,
Source§impl PartialEq for FlipProgressSource
impl PartialEq for FlipProgressSource
Source§impl RefFromWasmAbi for FlipProgressSourcewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for FlipProgressSourcewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<FlipProgressSource>
type Anchor = SelfOwner<FlipProgressSource>
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 FlipProgressSource
impl Serialize for FlipProgressSource
Source§impl TryFrom<&str> for FlipProgressSource
impl TryFrom<&str> for FlipProgressSource
Source§impl Tsify for FlipProgressSource
impl Tsify for FlipProgressSource
const DECL: &'static str = "/**\n * Server-owned producer category for normalized global-flip progress.\n *\n * Future artifact or quest integrations add variants here and feed the same\n * accumulator instead of reimplementing threshold behavior.\n *\n * Trigger Stones are the only shipped producer: the gauge fills from stone\n * fires (weighted per trigger tier via `StonesSettings.gauge_weights`), so a\n * player with no sockets open does not flip.\n */\nexport type FlipProgressSource = \"TriggerFired\" | \"DamageDealt\" | \"DamageReceived\";"
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 FlipProgressSourcewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for FlipProgressSourcewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for FlipProgressSourcewhere
FlipProgressSource: Serialize,
impl VectorIntoWasmAbi for FlipProgressSourcewhere
FlipProgressSource: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for FlipProgressSource
impl WasmDescribeVector for FlipProgressSource
impl Copy for FlipProgressSource
impl Eq for FlipProgressSource
impl StructuralPartialEq for FlipProgressSource
Auto Trait Implementations§
impl Freeze for FlipProgressSource
impl RefUnwindSafe for FlipProgressSource
impl Send for FlipProgressSource
impl Sync for FlipProgressSource
impl Unpin for FlipProgressSource
impl UnwindSafe for FlipProgressSource
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.