pub struct ManaSettings {
pub pool: f64,
pub regen_per_second: f64,
}Expand description
Balance settings of the character mana pool.
Deliberately forgiving at this stage: the pool and the regen are picked so a normal fight never runs dry and only a very long fight (tens of seconds of uninterrupted casting) empties it. Mana exists here as the foundation the ability stones price against, not as a resource to micromanage.
Fields§
§pool: f64Full pool, granted at the start of EVERY fight.
regen_per_second: f64Points restored per second of fight time.
Trait Implementations§
Source§impl Clone for ManaSettings
impl Clone for ManaSettings
Source§fn clone(&self) -> ManaSettings
fn clone(&self) -> ManaSettings
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 ManaSettings
impl Debug for ManaSettings
Source§impl<'de> Deserialize<'de> for ManaSettings
impl<'de> Deserialize<'de> for ManaSettings
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 ManaSettings
impl JsonSchema for ManaSettings
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 ManaSettings
impl Serialize for ManaSettings
Source§impl Tsify for ManaSettings
impl Tsify for ManaSettings
const DECL: &'static str = "/**\n * Balance settings of the character mana pool.\n *\n * Deliberately forgiving at this stage: the pool and the regen are picked so a\n * normal fight never runs dry and only a very long fight (tens of seconds of\n * uninterrupted casting) empties it. Mana exists here as the foundation the\n * ability stones price against, not as a resource to micromanage.\n */\nexport interface ManaSettings {\n /**\n * Full pool, granted at the start of EVERY fight.\n */\n pool: number;\n /**\n * Points restored per second of fight time.\n */\n regen_per_second: 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 ManaSettings
impl RefUnwindSafe for ManaSettings
impl Send for ManaSettings
impl Sync for ManaSettings
impl Unpin for ManaSettings
impl UnwindSafe for ManaSettings
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