pub struct AbilityStoneOp {
pub kind: AbilityStoneOpKind,
pub base_value: f64,
pub value_per_level: f64,
pub count: i64,
pub interval_ms: i64,
}Expand description
One operation of a support stone, with its rank scaling.
Fields§
§kind: AbilityStoneOpKind§base_value: f64§value_per_level: f64§count: i64§interval_ms: i64Implementations§
Source§impl AbilityStoneOp
impl AbilityStoneOp
Sourcepub fn scalar(
kind: AbilityStoneOpKind,
base_value: f64,
value_per_level: f64,
) -> Self
pub fn scalar( kind: AbilityStoneOpKind, base_value: f64, value_per_level: f64, ) -> Self
A plain scalar op (no structural count, no timing).
Sourcepub fn value_at_level(&self, level: i64) -> f64
pub fn value_at_level(&self, level: i64) -> f64
Magnitude at level (levels are 1-based).
Trait Implementations§
Source§impl Clone for AbilityStoneOp
impl Clone for AbilityStoneOp
Source§fn clone(&self) -> AbilityStoneOp
fn clone(&self) -> AbilityStoneOp
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 AbilityStoneOp
impl Debug for AbilityStoneOp
Source§impl<'de> Deserialize<'de> for AbilityStoneOp
impl<'de> Deserialize<'de> for AbilityStoneOp
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 AbilityStoneOp
impl JsonSchema for AbilityStoneOp
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 PartialEq for AbilityStoneOp
impl PartialEq for AbilityStoneOp
Source§impl Serialize for AbilityStoneOp
impl Serialize for AbilityStoneOp
Source§impl Tsify for AbilityStoneOp
impl Tsify for AbilityStoneOp
const DECL: &'static str = "/**\n * One operation of a support stone, with its rank scaling.\n */\nexport interface AbilityStoneOp {\n kind: AbilityStoneOpKind;\n base_value: number;\n value_per_level: number;\n count: number;\n interval_ms: 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>
impl Copy for AbilityStoneOp
impl StructuralPartialEq for AbilityStoneOp
Auto Trait Implementations§
impl Freeze for AbilityStoneOp
impl RefUnwindSafe for AbilityStoneOp
impl Send for AbilityStoneOp
impl Sync for AbilityStoneOp
impl Unpin for AbilityStoneOp
impl UnwindSafe for AbilityStoneOp
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