pub struct ShipHardpointModule {
pub module: HardpointModule,
pub mounting: HardpointMounting,
pub size: HardpointSize,
pub class: ModuleClass,
}
Expand description
Contains all the data related to hardpoints. This model is used for both full-sized hardpoint modules and utility modules. Utility modules use HardpointSize::Tiny and full-sized modules use the other sizes.
Fields§
§module: HardpointModule
The kind internal module, which can both be full-sized hardpoints and utility modules.
mounting: HardpointMounting
The mounting type the module used which dictate how aiming works. Utility modules always use HardpointMounting::Turreted.
size: HardpointSize
The size of the module.
class: ModuleClass
The class of the module.
Implementations§
Source§impl ShipHardpointModule
impl ShipHardpointModule
Sourcepub fn hardpoint_type(&self) -> HardpointType
pub fn hardpoint_type(&self) -> HardpointType
Returns whether the module is a full-sized hardpoint or a utility module.
Sourcepub fn is_full_sized_module(&self) -> bool
pub fn is_full_sized_module(&self) -> bool
Whether the module is a full-sized hardpoint module.
Sourcepub fn is_utility_module(&self) -> bool
pub fn is_utility_module(&self) -> bool
Whether the module is a utility module.
Sourcepub fn is_powerplay_module(&self) -> bool
pub fn is_powerplay_module(&self) -> bool
Whether the module is a module that is unlocked through powerplay.
Sourcepub fn is_guardian_module(&self) -> bool
pub fn is_guardian_module(&self) -> bool
Whether the module is a module that is unlocked using guardian parts at a guardian technology broker.
Trait Implementations§
Source§impl Clone for ShipHardpointModule
impl Clone for ShipHardpointModule
Source§fn clone(&self) -> ShipHardpointModule
fn clone(&self) -> ShipHardpointModule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more