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
Munition
Expendable
Fields
entity_type: EntityTypeExplosion
Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more