pub enum DescriptorRecord {
Munition {
entity_type: EntityType,
munition: MunitionDescriptor,
},
Expendable {
entity_type: EntityType,
},
Explosion {
entity_type: EntityType,
explosive_material: ExplosiveMaterialCategories,
explosive_force: f32,
},
}Expand description
6.2.19 Descriptor records
Variants§
Munition
6.2.19.2 Munition Descriptor record
Expendable
6.2.19.4 Expendable Descriptor record
Fields
§
entity_type: EntityTypeExplosion
6.2.19.3 Explosion Descriptor record
Implementations§
Source§impl DescriptorRecord
impl DescriptorRecord
pub fn new_munition( entity_type: EntityType, munition: MunitionDescriptor, ) -> Self
pub fn new_expendable(entity_type: EntityType) -> Self
pub fn new_explosion( entity_type: EntityType, explosive_material: ExplosiveMaterialCategories, explosive_force: f32, ) -> Self
Trait Implementations§
Source§impl Clone for DescriptorRecord
impl Clone for DescriptorRecord
Source§fn clone(&self) -> DescriptorRecord
fn clone(&self) -> DescriptorRecord
Returns a duplicate 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 DescriptorRecord
impl Debug for DescriptorRecord
Source§impl Default for DescriptorRecord
impl Default for DescriptorRecord
Source§impl PartialEq for DescriptorRecord
impl PartialEq for DescriptorRecord
impl StructuralPartialEq for DescriptorRecord
Auto Trait Implementations§
impl Freeze for DescriptorRecord
impl RefUnwindSafe for DescriptorRecord
impl Send for DescriptorRecord
impl Sync for DescriptorRecord
impl Unpin for DescriptorRecord
impl UnwindSafe for DescriptorRecord
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