pub struct FlipSettings {
pub unlock_chapter: i64,
pub progress_threshold: f64,
pub damage_gauge_coefficient: f64,
}Expand description
Balance settings for the persistent global equipment flip gauge.
Fields§
§unlock_chapter: i64Chapter level at which Real slots, progress, and flip presentation become active.
progress_threshold: f64Normalized progress required to toggle the global active side.
damage_gauge_coefficient: f64BAL-026 C: gauge for removing a victim’s FULL health bar (scaled by
the victim’s wave share for outgoing, by the owner’s own bar for
incoming). Symmetric for dealt and received.
Implementations§
Source§impl FlipSettings
impl FlipSettings
pub const fn is_unlocked(&self, chapter_level: i64) -> bool
Trait Implementations§
Source§impl Clone for FlipSettings
impl Clone for FlipSettings
Source§fn clone(&self) -> FlipSettings
fn clone(&self) -> FlipSettings
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 FlipSettings
impl Debug for FlipSettings
Source§impl<'de> Deserialize<'de> for FlipSettings
impl<'de> Deserialize<'de> for FlipSettings
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 FlipSettings
impl JsonSchema for FlipSettings
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 FlipSettings
impl Serialize for FlipSettings
Source§impl Tsify for FlipSettings
impl Tsify for FlipSettings
const DECL: &'static str = "/**\n * Balance settings for the persistent global equipment flip gauge.\n */\nexport interface FlipSettings {\n /**\n * Chapter level at which Real slots, progress, and flip presentation become active.\n */\n unlock_chapter: number;\n /**\n * Normalized progress required to toggle the global active side.\n */\n progress_threshold: number;\n /**\n * BAL-026 `C`: gauge for removing a victim\\\'s FULL health bar (scaled by\n * the victim\\\'s wave share for outgoing, by the owner\\\'s own bar for\n * incoming). Symmetric for dealt and received.\n */\n damage_gauge_coefficient: 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 FlipSettings
impl RefUnwindSafe for FlipSettings
impl Send for FlipSettings
impl Sync for FlipSettings
impl Unpin for FlipSettings
impl UnwindSafe for FlipSettings
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