pub struct WaveFightData {
pub entities: Vec<WaveEntityPower>,
pub waves: Vec<Vec<WaveSpawn>>,
pub time: f64,
pub power: Option<f64>,
}Expand description
Typed form of the fight_data prepare-fight blob fed to spawn_wave.
Fields§
§entities: Vec<WaveEntityPower>entities[].{ entity_id, power } — the per-template relative powers.
waves: Vec<Vec<WaveSpawn>>waves[][].{ data: { entity_id, delay }, position }.
time: f64time — the fight time budget used to normalise mob HP.
power: Option<f64>The per-fight reference power (base_power for spawn_wave).
None mirrors a missing/unconfigured value (treated as 0.0 by callers).
Trait Implementations§
Source§impl Clone for WaveFightData
impl Clone for WaveFightData
Source§fn clone(&self) -> WaveFightData
fn clone(&self) -> WaveFightData
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 WaveFightData
impl Debug for WaveFightData
Source§impl Default for WaveFightData
impl Default for WaveFightData
Source§fn default() -> WaveFightData
fn default() -> WaveFightData
Returns the “default value” for a type. Read more
Source§impl PartialEq for WaveFightData
impl PartialEq for WaveFightData
Source§impl Serialize for WaveFightData
impl Serialize for WaveFightData
impl StructuralPartialEq for WaveFightData
Auto Trait Implementations§
impl Freeze for WaveFightData
impl RefUnwindSafe for WaveFightData
impl Send for WaveFightData
impl Sync for WaveFightData
impl Unpin for WaveFightData
impl UnwindSafe for WaveFightData
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> 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> 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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].