pub enum ShipModule {
Show 17 variants
CargoBayDoor,
DataLinkScanner,
CodexScanner,
DiscoverScanner,
Internal(ShipInternalModule),
Hardpoint(ShipHardpointModule),
Cockpit(ShipCockpitModule),
PaintJob(ShipPaintJob),
Decal(ShipDecal),
VoicePack(ShipVoicepack),
Nameplate(ShipNameplate),
EngineColor(ShipEngineColor),
WeaponColor(ShipWeaponColor),
ShipKitModule(ShipKitModule),
Bobble(ShipBobble),
StringLights(ShipStringLights),
Unknown(String),
}
Expand description
Any ship module, covering all the different kinds of modules: hardpoints, utility modules, core internals and optional internals. This also covers cosmetic items like paint job, decals, engine colors etc.
The game considers full-sized hardpoints and utility modules both use ShipHardpointModule, where utility modules have a hardpoint size of [HardpointSize::Tiny].
The same is true for core internals and optional internals which both use ShipInternalModule.
Variants§
CargoBayDoor
Special case for the cargo bay door.
DataLinkScanner
Spacial case for the data link scanner.
CodexScanner
Spacial case for the codex scanner.
DiscoverScanner
Spacial case for the discovery scanner.
Internal(ShipInternalModule)
Any internal module, this includes core and optional modules.
Hardpoint(ShipHardpointModule)
For external modules, both full-sized hardpoints and utility modules.
Cockpit(ShipCockpitModule)
PaintJob(ShipPaintJob)
Decal(ShipDecal)
VoicePack(ShipVoicepack)
Nameplate(ShipNameplate)
EngineColor(ShipEngineColor)
WeaponColor(ShipWeaponColor)
ShipKitModule(ShipKitModule)
Bobble(ShipBobble)
StringLights(ShipStringLights)
Unknown(String)
allow-unknown
only.Implementations§
Source§impl ShipModule
impl ShipModule
Sourcepub fn is_hardpoint_module(&self) -> bool
pub fn is_hardpoint_module(&self) -> bool
Whether the module is any kind of hardpoint module, including utility modules.
Sourcepub fn is_full_sized_hardpoint_module(&self) -> bool
pub fn is_full_sized_hardpoint_module(&self) -> bool
Whether the module is a full-sized hardpoint module. This does not include utility modules.
Sourcepub fn is_utility_module(&self) -> bool
pub fn is_utility_module(&self) -> bool
Whether the module is a utility module.
Sourcepub fn is_internal_module(&self) -> bool
pub fn is_internal_module(&self) -> bool
Whether the module is any internal module. This includes both core- and optional internals.
Sourcepub fn is_core_internal(&self) -> bool
pub fn is_core_internal(&self) -> bool
Whether the module is a core internal module.
Sourcepub fn is_optional_internal(&self) -> bool
pub fn is_optional_internal(&self) -> bool
Whether the module is an optional internal 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.
Sourcepub fn is_cosmetic(&self) -> bool
pub fn is_cosmetic(&self) -> bool
Whether the module is a cosmetic module. The game tracks these cosmetics as modules that slot into special slots.
Trait Implementations§
Source§impl Clone for ShipModule
impl Clone for ShipModule
Source§fn clone(&self) -> ShipModule
fn clone(&self) -> ShipModule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more