pub struct CoreLevelCost {
pub level: i64,
pub cost: PositiveI64,
}Expand description
Cost of raising ONE core from level - 1 to level. Shared by both cores:
the doc’s «общая валюта прокачки» is one currency and one ladder.
The ladder starts at level 1, not 2: level 0 means “this core does not exist yet” (the pre-feature character, plan §7.12), so buying level 1 is what unlocks the core.
The table only has to cover the levels that OPEN SLOTS. Above the last
tabled level the cost is extended geometrically by
CoresSettings::level_cost_growth — that is what makes the core an
unbounded sink instead of a five-rung ladder.
Fields§
§level: i64§cost: PositiveI64Trait Implementations§
Source§impl Clone for CoreLevelCost
impl Clone for CoreLevelCost
Source§fn clone(&self) -> CoreLevelCost
fn clone(&self) -> CoreLevelCost
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 CoreLevelCost
impl Debug for CoreLevelCost
Source§impl<'de> Deserialize<'de> for CoreLevelCost
impl<'de> Deserialize<'de> for CoreLevelCost
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 CoreLevelCost
impl JsonSchema for CoreLevelCost
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 CoreLevelCost
impl Serialize for CoreLevelCost
Source§impl Tsify for CoreLevelCost
impl Tsify for CoreLevelCost
const DECL: &'static str = "/**\n * Cost of raising ONE core from `level - 1` to `level`. Shared by both cores:\n * the doc\\\'s \u{ab}\u{43e}\u{431}\u{449}\u{430}\u{44f} \u{432}\u{430}\u{43b}\u{44e}\u{442}\u{430} \u{43f}\u{440}\u{43e}\u{43a}\u{430}\u{447}\u{43a}\u{438}\u{bb} is one currency and one ladder.\n *\n * The ladder starts at level 1, not 2: level 0 means \\\"this core does not exist\n * yet\\\" (the pre-feature character, plan \u{a7}7.12), so buying level 1 is what\n * unlocks the core.\n *\n * The table only has to cover the levels that OPEN SLOTS. Above the last\n * tabled level the cost is extended geometrically by\n * [`CoresSettings::level_cost_growth`] \u{2014} that is what makes the core an\n * unbounded sink instead of a five-rung ladder.\n */\nexport interface CoreLevelCost {\n level: number;\n cost: PositiveI64;\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 CoreLevelCost
impl RefUnwindSafe for CoreLevelCost
impl Send for CoreLevelCost
impl Sync for CoreLevelCost
impl Unpin for CoreLevelCost
impl UnwindSafe for CoreLevelCost
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