pub enum DespawnStyle {
Vanish,
Kill,
}Expand description
How a despawn-actor removes its puppet (DSL v0.6).
Variants§
Vanish
The body leaves unseen: no death animation, red flash or death particles where it stood. It is moved under the world and removed there.
Kill
The body dies where it stands, with the vanilla death animation (a death the player is meant to watch).
Implementations§
Trait Implementations§
Source§impl Clone for DespawnStyle
impl Clone for DespawnStyle
impl Copy for DespawnStyle
Source§impl Debug for DespawnStyle
impl Debug for DespawnStyle
Source§impl<'de> Deserialize<'de> for DespawnStyle
impl<'de> Deserialize<'de> for DespawnStyle
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
impl Eq for DespawnStyle
Source§impl JsonSchema for DespawnStyle
impl JsonSchema for DespawnStyle
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
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DespawnStyle
impl PartialEq for DespawnStyle
Source§impl Serialize for DespawnStyle
impl Serialize for DespawnStyle
impl StructuralPartialEq for DespawnStyle
Auto Trait Implementations§
impl Freeze for DespawnStyle
impl RefUnwindSafe for DespawnStyle
impl Send for DespawnStyle
impl Sync for DespawnStyle
impl Unpin for DespawnStyle
impl UnsafeUnpin for DespawnStyle
impl UnwindSafe for DespawnStyle
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