pub struct UpgradedStonesMap(pub HashMap<StoneTemplateId, (i64, i64)>);Expand description
What one UpgradeAllStones call actually changed: template id -> (from, to)
level. Modelled on UpgradedAbilitiesMap and used the same way — the client
shows the result window from this, and quests read it for progress.
Only stones that actually gained a level appear; a stone whose bank was too short is simply absent rather than present with an unchanged pair.
Tuple Fields§
§0: HashMap<StoneTemplateId, (i64, i64)>Implementations§
Trait Implementations§
Source§impl Clone for UpgradedStonesMap
impl Clone for UpgradedStonesMap
Source§fn clone(&self) -> UpgradedStonesMap
fn clone(&self) -> UpgradedStonesMap
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 UpgradedStonesMap
impl Debug for UpgradedStonesMap
Source§impl Default for UpgradedStonesMap
impl Default for UpgradedStonesMap
Source§fn default() -> UpgradedStonesMap
fn default() -> UpgradedStonesMap
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradedStonesMap
impl<'de> Deserialize<'de> for UpgradedStonesMap
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 UpgradedStonesMap
impl JsonSchema for UpgradedStonesMap
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 UpgradedStonesMap
impl PartialEq for UpgradedStonesMap
Source§impl Serialize for UpgradedStonesMap
impl Serialize for UpgradedStonesMap
Source§impl Tsify for UpgradedStonesMap
impl Tsify for UpgradedStonesMap
const DECL: &'static str = "/**\n * What one `UpgradeAllStones` call actually changed: template id -> (from, to)\n * level. Modelled on `UpgradedAbilitiesMap` and used the same way \u{2014} the client\n * shows the result window from this, and quests read it for progress.\n *\n * Only stones that actually gained a level appear; a stone whose bank was too\n * short is simply absent rather than present with an unchanged pair.\n */\nexport type UpgradedStonesMap = Record<StoneTemplateId, [number, number]>;"
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 Eq for UpgradedStonesMap
impl StructuralPartialEq for UpgradedStonesMap
Auto Trait Implementations§
impl Freeze for UpgradedStonesMap
impl RefUnwindSafe for UpgradedStonesMap
impl Send for UpgradedStonesMap
impl Sync for UpgradedStonesMap
impl Unpin for UpgradedStonesMap
impl UnwindSafe for UpgradedStonesMap
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