Enum dis_rs::DescriptorRecord
source · pub enum DescriptorRecord {
Munition {
entity_type: EntityType,
munition: MunitionDescriptor,
},
Expendable {
entity_type: EntityType,
},
Explosion {
entity_type: EntityType,
explosive_material: ExplosiveMaterialCategories,
explosive_force: f32,
},
}Variants§
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 Default for DescriptorRecord
impl Default for DescriptorRecord
Auto Trait Implementations§
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