pub struct AbilityTemplate {Show 15 fields
pub id: AbilityId,
pub is_fight_ui_visible: bool,
pub fight_ui_visibility: AbilityFightUiVisibility,
pub name: I18nString,
pub start_script: String,
pub script: String,
pub icon_url: String,
pub icon_path: String,
pub cooldown: u64,
pub is_gacha_ability: bool,
pub rarity_id: AbilityRarityId,
pub description: I18nString,
pub description_values_script: Option<String>,
pub vfx_object_path: String,
pub cast_type: AbilityCastType,
}Fields§
§id: AbilityId§is_fight_ui_visible: bool§fight_ui_visibility: AbilityFightUiVisibility§name: I18nString§start_script: String§script: String§icon_url: String§icon_path: String§cooldown: u64§is_gacha_ability: bool§rarity_id: AbilityRarityId§description: I18nString§description_values_script: Option<String>§vfx_object_path: String§cast_type: AbilityCastTypeTrait Implementations§
Source§impl Clone for AbilityTemplate
impl Clone for AbilityTemplate
Source§fn clone(&self) -> AbilityTemplate
fn clone(&self) -> AbilityTemplate
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 CustomType for AbilityTemplate
impl CustomType for AbilityTemplate
Source§fn build(builder: TypeBuilder<'_, Self>)
fn build(builder: TypeBuilder<'_, Self>)
Builds the custom type for use with the [
Engine]. Read moreSource§impl Debug for AbilityTemplate
impl Debug for AbilityTemplate
Source§impl Default for AbilityTemplate
impl Default for AbilityTemplate
Source§fn default() -> AbilityTemplate
fn default() -> AbilityTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AbilityTemplate
impl<'de> Deserialize<'de> for AbilityTemplate
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 FromWasmAbi for AbilityTemplatewhere
Self: DeserializeOwned,
impl FromWasmAbi for AbilityTemplatewhere
Self: DeserializeOwned,
Source§impl JsonSchema for AbilityTemplate
impl JsonSchema for AbilityTemplate
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 AbilityTemplatewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for AbilityTemplatewhere
Self: DeserializeOwned,
Source§impl PartialEq for AbilityTemplate
impl PartialEq for AbilityTemplate
Source§impl RefFromWasmAbi for AbilityTemplatewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for AbilityTemplatewhere
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<AbilityTemplate>
type Anchor = SelfOwner<AbilityTemplate>
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 AbilityTemplate
impl Serialize for AbilityTemplate
Source§impl Tsify for AbilityTemplate
impl Tsify for AbilityTemplate
const DECL: &'static str = "export interface AbilityTemplate {\n id: AbilityId;\n is_fight_ui_visible: boolean;\n fight_ui_visibility: AbilityFightUiVisibility;\n name: I18nString;\n start_script: string;\n script: string;\n icon_url: string;\n icon_path: string;\n cooldown: number;\n is_gacha_ability: boolean;\n rarity_id: AbilityRarityId;\n description: I18nString;\n description_values_script: string | null;\n vfx_object_path: string;\n cast_type: AbilityCastType;\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>
Source§impl VectorFromWasmAbi for AbilityTemplatewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for AbilityTemplatewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl WasmDescribeVector for AbilityTemplate
impl WasmDescribeVector for AbilityTemplate
impl Eq for AbilityTemplate
impl StructuralPartialEq for AbilityTemplate
Auto Trait Implementations§
impl Freeze for AbilityTemplate
impl RefUnwindSafe for AbilityTemplate
impl Send for AbilityTemplate
impl Sync for AbilityTemplate
impl Unpin for AbilityTemplate
impl UnwindSafe for AbilityTemplate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more