pub struct PrepareFightWaves {
pub entities: Vec<PrepareFightEntityPower>,
pub waves: Vec<Vec<PrepareFightSpawn>>,
pub time: f64,
pub power: f64,
}Expand description
Typed, config-level mirror of overlord_event_system’s WaveFightData (the
shape prepare_fight_script builds inline and passes to ctx.spawn_wave).
Holds the wave data as typed config — pure data, no combat and no RNG. Field
optionality mirrors WaveFightData exactly.
Fields§
§entities: Vec<PrepareFightEntityPower>§waves: Vec<Vec<PrepareFightSpawn>>§time: f64§power: f64Trait Implementations§
Source§impl Clone for PrepareFightWaves
impl Clone for PrepareFightWaves
Source§fn clone(&self) -> PrepareFightWaves
fn clone(&self) -> PrepareFightWaves
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 PrepareFightWaves
impl Debug for PrepareFightWaves
Source§impl Default for PrepareFightWaves
impl Default for PrepareFightWaves
Source§fn default() -> PrepareFightWaves
fn default() -> PrepareFightWaves
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrepareFightWaves
impl<'de> Deserialize<'de> for PrepareFightWaves
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 PrepareFightWaves
impl JsonSchema for PrepareFightWaves
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 PrepareFightWaves
impl PartialEq for PrepareFightWaves
Source§impl Serialize for PrepareFightWaves
impl Serialize for PrepareFightWaves
Source§impl Tsify for PrepareFightWaves
impl Tsify for PrepareFightWaves
const DECL: &'static str = "/**\n * Typed, config-level mirror of `overlord_event_system`\\\'s `WaveFightData` (the\n * shape `prepare_fight_script` builds inline and passes to `ctx.spawn_wave`).\n * Holds the wave data as typed config \u{2014} pure data, no combat and no RNG. Field\n * optionality mirrors `WaveFightData` exactly.\n */\nexport interface PrepareFightWaves {\n entities: PrepareFightEntityPower[];\n waves: PrepareFightSpawn[][];\n time: number;\n power?: number;\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 StructuralPartialEq for PrepareFightWaves
Auto Trait Implementations§
impl Freeze for PrepareFightWaves
impl RefUnwindSafe for PrepareFightWaves
impl Send for PrepareFightWaves
impl Sync for PrepareFightWaves
impl Unpin for PrepareFightWaves
impl UnwindSafe for PrepareFightWaves
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