pub struct PendingWaveSpawn {
pub id: Uuid,
pub entity_template_id: EntityTemplateId,
pub position: Coordinates,
pub attributes: EntityAttributes,
pub has_big_hp_bar: bool,
}Expand description
One not-yet-released mob of a Streaming wave (docs/combat-feel-porting-plan.md, phase 3).
Fully precomputed at wave start by spawn_wave — power-normalized attrs, position and the
spawn id (drawn from the wave’s RNG stream in config order, so seed determinism holds no
matter when the release happens) — and converted to a SpawnEntity event on release.
Deliberately a plain essences struct (not the event): the event type lives in
overlord_event_system, which depends on this crate.
Fields§
§id: Uuid§entity_template_id: EntityTemplateId§position: Coordinates§attributes: EntityAttributes§has_big_hp_bar: boolTrait Implementations§
Source§impl Clone for PendingWaveSpawn
impl Clone for PendingWaveSpawn
Source§fn clone(&self) -> PendingWaveSpawn
fn clone(&self) -> PendingWaveSpawn
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 PendingWaveSpawn
impl Debug for PendingWaveSpawn
Source§impl Default for PendingWaveSpawn
impl Default for PendingWaveSpawn
Source§fn default() -> PendingWaveSpawn
fn default() -> PendingWaveSpawn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PendingWaveSpawn
impl<'de> Deserialize<'de> for PendingWaveSpawn
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 PendingWaveSpawn
impl JsonSchema for PendingWaveSpawn
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 PendingWaveSpawn
impl PartialEq for PendingWaveSpawn
Source§impl Serialize for PendingWaveSpawn
impl Serialize for PendingWaveSpawn
Source§impl Tsify for PendingWaveSpawn
impl Tsify for PendingWaveSpawn
const DECL: &'static str = "/**\n * One not-yet-released mob of a Streaming wave (docs/combat-feel-porting-plan.md, phase 3).\n * Fully precomputed at wave start by `spawn_wave` \u{2014} power-normalized attrs, position and the\n * spawn id (drawn from the wave\\\'s RNG stream in config order, so seed determinism holds no\n * matter when the release happens) \u{2014} and converted to a `SpawnEntity` event on release.\n * Deliberately a plain essences struct (not the event): the event type lives in\n * `overlord_event_system`, which depends on this crate.\n */\nexport interface PendingWaveSpawn {\n id: Uuid;\n entity_template_id: EntityTemplateId;\n position: Coordinates;\n attributes: EntityAttributes;\n has_big_hp_bar: boolean;\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 PendingWaveSpawn
impl StructuralPartialEq for PendingWaveSpawn
Auto Trait Implementations§
impl Freeze for PendingWaveSpawn
impl RefUnwindSafe for PendingWaveSpawn
impl Send for PendingWaveSpawn
impl Sync for PendingWaveSpawn
impl Unpin for PendingWaveSpawn
impl UnwindSafe for PendingWaveSpawn
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