pub enum ArtifactSocketSlot {
VisibleAspect,
HiddenAspect,
FlipAspect,
VisibleLaw,
HiddenLaw,
BridgeLaw,
}Expand description
One of the artifact’s six sockets.
Order is fixed and load-bearing: the whole left column opens before the right
one, because a Law stone has nothing to retune until the player owns cores.
ArtifactSocketSlot::unlock_order is that order, and
GameConfig::validate_artifacts holds the unlock schedule to it.
Variant docs live here rather than on the variants themselves: a documented
variant makes the admin schema generate a oneOf of one-value enums instead
of a plain picker.
VisibleAspect— how active gear effects behave.HiddenAspect— what hidden gear effects do.FlipAspect— what happens on the flip itself.VisibleLaw— how active core laws behave.HiddenLaw— what hidden core laws do.BridgeLaw— how bridges work.
Variants§
Implementations§
Source§impl ArtifactSocketSlot
impl ArtifactSocketSlot
Sourcepub const fn column(self) -> ArtifactSocketColumn
pub const fn column(self) -> ArtifactSocketColumn
The column this socket belongs to. A stone of one column can never enter a socket of the other.
Sourcepub const fn unlock_order(self) -> u8
pub const fn unlock_order(self) -> u8
Position in the fixed opening order — left column first, then right. Config may space the chapters however it likes, but never out of this order.
Trait Implementations§
Source§impl Clone for ArtifactSocketSlot
impl Clone for ArtifactSocketSlot
Source§fn clone(&self) -> ArtifactSocketSlot
fn clone(&self) -> ArtifactSocketSlot
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 ArtifactSocketSlot
impl Debug for ArtifactSocketSlot
Source§impl Default for ArtifactSocketSlot
impl Default for ArtifactSocketSlot
Source§fn default() -> ArtifactSocketSlot
fn default() -> ArtifactSocketSlot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArtifactSocketSlot
impl<'de> Deserialize<'de> for ArtifactSocketSlot
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 Display for ArtifactSocketSlot
impl Display for ArtifactSocketSlot
Source§impl From<ArtifactSocketSlot> for JsValuewhere
ArtifactSocketSlot: Serialize,
impl From<ArtifactSocketSlot> for JsValuewhere
ArtifactSocketSlot: Serialize,
Source§fn from(value: ArtifactSocketSlot) -> Self
fn from(value: ArtifactSocketSlot) -> Self
Converts to this type from the input type.
Source§impl FromStr for ArtifactSocketSlot
impl FromStr for ArtifactSocketSlot
Source§impl FromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
impl FromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
Source§impl Hash for ArtifactSocketSlot
impl Hash for ArtifactSocketSlot
Source§impl IntoEnumIterator for ArtifactSocketSlot
impl IntoEnumIterator for ArtifactSocketSlot
type Iterator = ArtifactSocketSlotIter
fn iter() -> ArtifactSocketSlotIter ⓘ
Source§impl IntoWasmAbi for ArtifactSocketSlotwhere
ArtifactSocketSlot: Serialize,
impl IntoWasmAbi for ArtifactSocketSlotwhere
ArtifactSocketSlot: Serialize,
Source§impl JsonSchema for ArtifactSocketSlot
impl JsonSchema for ArtifactSocketSlot
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 OptionFromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ArtifactSocketSlotwhere
ArtifactSocketSlot: Serialize,
impl OptionIntoWasmAbi for ArtifactSocketSlotwhere
ArtifactSocketSlot: Serialize,
Source§impl PartialEq for ArtifactSocketSlot
impl PartialEq for ArtifactSocketSlot
Source§impl RefFromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<ArtifactSocketSlot>
type Anchor = SelfOwner<ArtifactSocketSlot>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for ArtifactSocketSlot
impl Serialize for ArtifactSocketSlot
Source§impl TryFrom<&str> for ArtifactSocketSlot
impl TryFrom<&str> for ArtifactSocketSlot
Source§impl Tsify for ArtifactSocketSlot
impl Tsify for ArtifactSocketSlot
const DECL: &'static str = "/**\n * One of the artifact\\\'s six sockets.\n *\n * Order is fixed and load-bearing: the whole left column opens before the right\n * one, because a Law stone has nothing to retune until the player owns cores.\n * [`ArtifactSocketSlot::unlock_order`] is that order, and\n * `GameConfig::validate_artifacts` holds the unlock schedule to it.\n *\n * Variant docs live here rather than on the variants themselves: a documented\n * variant makes the admin schema generate a `oneOf` of one-value enums instead\n * of a plain picker.\n *\n * * `VisibleAspect` \u{2014} how active gear effects behave.\n * * `HiddenAspect` \u{2014} what hidden gear effects do.\n * * `FlipAspect` \u{2014} what happens on the flip itself.\n * * `VisibleLaw` \u{2014} how active core laws behave.\n * * `HiddenLaw` \u{2014} what hidden core laws do.\n * * `BridgeLaw` \u{2014} how bridges work.\n */\nexport type ArtifactSocketSlot = \"VisibleAspect\" | \"HiddenAspect\" | \"FlipAspect\" | \"VisibleLaw\" | \"HiddenLaw\" | \"BridgeLaw\";"
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>
Source§impl VectorFromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for ArtifactSocketSlotwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for ArtifactSocketSlotwhere
ArtifactSocketSlot: Serialize,
impl VectorIntoWasmAbi for ArtifactSocketSlotwhere
ArtifactSocketSlot: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for ArtifactSocketSlot
impl WasmDescribeVector for ArtifactSocketSlot
impl Copy for ArtifactSocketSlot
impl Eq for ArtifactSocketSlot
impl StructuralPartialEq for ArtifactSocketSlot
Auto Trait Implementations§
impl Freeze for ArtifactSocketSlot
impl RefUnwindSafe for ArtifactSocketSlot
impl Send for ArtifactSocketSlot
impl Sync for ArtifactSocketSlot
impl Unpin for ArtifactSocketSlot
impl UnwindSafe for ArtifactSocketSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.