pub struct DetonationBuilder(/* private fields */);Implementations§
Source§impl DetonationBuilder
impl DetonationBuilder
pub fn new() -> Self
pub fn new_from_body(body: Detonation) -> Self
pub fn build(self) -> Detonation
pub fn with_source_entity_id(self, source_entity_id: EntityId) -> Self
pub fn with_target_entity_id(self, target_entity_id: EntityId) -> Self
pub fn with_exploding_entity_id(self, exploding_entity_id: EntityId) -> Self
pub fn with_event_id(self, event_id: EventId) -> Self
pub fn with_velocity(self, velocity: VectorF32) -> Self
pub fn with_world_location(self, location: Location) -> Self
pub fn with_descriptor(self, descriptor: DescriptorRecord) -> Self
pub fn with_munition_descriptor( self, entity_type: EntityType, munition: MunitionDescriptor, ) -> Self
pub fn with_expendable_descriptor(self, entity_type: EntityType) -> Self
pub fn with_explosion_descriptor( self, entity_type: EntityType, explosive_material: ExplosiveMaterialCategories, explosive_force: f32, ) -> Self
pub fn with_entity_location(self, location: VectorF32) -> Self
pub fn with_detonation_result(self, detonation_result: DetonationResult) -> Self
pub fn with_variable_parameter(self, parameter: VariableParameter) -> Self
pub fn with_variable_parameters( self, parameters: Vec<VariableParameter>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DetonationBuilder
impl RefUnwindSafe for DetonationBuilder
impl Send for DetonationBuilder
impl Sync for DetonationBuilder
impl Unpin for DetonationBuilder
impl UnwindSafe for DetonationBuilder
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