pub struct FightTemplate {Show 21 fields
pub id: FightTemplateId,
pub title: I18nString,
pub power: Option<u64>,
pub fight_entities: Vec<FightEntity>,
pub max_duration_ticks: u64,
pub target_width_cells: u64,
pub starting_fx: String,
pub fight_type: FightType,
pub waves_amount: i64,
pub prepare_fight_script: String,
pub start_script: String,
pub background: String,
pub start_fight_delay_ticks: Option<u64>,
pub prepare_fight_win_duration_ticks: Option<u64>,
pub prepare_fight_lose_duration_ticks: Option<u64>,
pub end_fight_delay_ticks: Option<u64>,
pub bundle_reward_id: Option<BundleId>,
pub stop_on_win: bool,
pub stop_on_lose: bool,
pub show_vs_screen: bool,
pub show_stages: Option<bool>,
}Fields§
§id: FightTemplateId§title: I18nString§power: Option<u64>§fight_entities: Vec<FightEntity>§max_duration_ticks: u64§target_width_cells: u64§starting_fx: String§fight_type: FightType§waves_amount: i64§prepare_fight_script: String§start_script: String§background: String§start_fight_delay_ticks: Option<u64>§prepare_fight_win_duration_ticks: Option<u64>§prepare_fight_lose_duration_ticks: Option<u64>§end_fight_delay_ticks: Option<u64>§bundle_reward_id: Option<BundleId>§stop_on_win: bool§stop_on_lose: bool§show_vs_screen: bool§show_stages: Option<bool>Trait Implementations§
Source§impl Clone for FightTemplate
impl Clone for FightTemplate
Source§fn clone(&self) -> FightTemplate
fn clone(&self) -> FightTemplate
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 FightTemplate
impl CustomType for FightTemplate
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 FightTemplate
impl Debug for FightTemplate
Source§impl<'de> Deserialize<'de> for FightTemplate
impl<'de> Deserialize<'de> for FightTemplate
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 FightTemplate
impl JsonSchema for FightTemplate
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 FightTemplate
impl PartialEq for FightTemplate
Source§impl Serialize for FightTemplate
impl Serialize for FightTemplate
Source§impl Tsify for FightTemplate
impl Tsify for FightTemplate
const DECL: &'static str = "export interface FightTemplate {\n id: FightTemplateId;\n title: I18nString;\n power: number | null;\n fight_entities: FightEntity[];\n max_duration_ticks: number;\n target_width_cells: number;\n starting_fx: string;\n fight_type: FightType;\n waves_amount: number;\n prepare_fight_script: string;\n start_script: string;\n background: string;\n start_fight_delay_ticks: number | null;\n prepare_fight_win_duration_ticks: number | null;\n prepare_fight_lose_duration_ticks: number | null;\n end_fight_delay_ticks: number | null;\n bundle_reward_id: BundleId | null;\n stop_on_win: boolean;\n stop_on_lose: boolean;\n show_vs_screen: boolean;\n show_stages: boolean | null;\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>
impl Eq for FightTemplate
impl StructuralPartialEq for FightTemplate
Auto Trait Implementations§
impl Freeze for FightTemplate
impl RefUnwindSafe for FightTemplate
impl Send for FightTemplate
impl Sync for FightTemplate
impl Unpin for FightTemplate
impl UnwindSafe for FightTemplate
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