Enum flattiverse_connector::unit::UnitKind
source · #[repr(u8)]
pub enum UnitKind {
Show 44 variants
Unknown,
Sun,
Planet,
Moon,
Meteoroid,
Buoy,
Nebula,
BlackHole,
WormHole,
MissionTarget,
PlayerShip,
PlayerPlatform,
PlayerProbe,
PlayerDrone,
PlayerBase,
Switch,
Gate,
Storm,
StormWhirl,
StormCommencingWhirl,
Pixel,
PixelCluster,
EnergyPowerUp,
ParticlesPowerUp,
IonsPowerUp,
HullPowerUp,
ShieldPowerUp,
ShotProductionPowerUp,
TotalRefreshPowerUp,
HastePowerUp,
DoubleDamagePowerUp,
QuadDamagePowerUp,
CloakPowerUp,
Spawner,
Explosion,
Shot,
SpaceJellyFish,
SpaceJellyFishSlime,
Asteroid,
AiShip,
AiPlatform,
AiProbe,
AiDrone,
AiBase,
}
Variants
Unknown
Sun
Planet
Moon
Meteoroid
Buoy
Nebula
BlackHole
WormHole
MissionTarget
PlayerShip
PlayerPlatform
PlayerProbe
PlayerDrone
PlayerBase
Switch
Gate
Storm
Plasma storm
StormWhirl
StormCommencingWhirl
A commencing whirl, which will become a storm-whirl
Pixel
PixelCluster
A cluster of 16x16 pixels
EnergyPowerUp
ParticlesPowerUp
IonsPowerUp
HullPowerUp
ShieldPowerUp
ShotProductionPowerUp
TotalRefreshPowerUp
HastePowerUp
DoubleDamagePowerUp
QuadDamagePowerUp
CloakPowerUp
Spawner
This is an internal unit for administrative purpose, which will never by received by a regular player.
Explosion
Shot
SpaceJellyFish
SpaceJellyFishSlime
Asteroid
AiShip
AiPlatform
AiProbe
AiDrone
AiBase
Implementations
Trait Implementations
sourceimpl PartialOrd<UnitKind> for UnitKind
impl PartialOrd<UnitKind> for UnitKind
sourcefn partial_cmp(&self, other: &UnitKind) -> Option<Ordering>
fn partial_cmp(&self, other: &UnitKind) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UnitKind
impl StructuralPartialEq for UnitKind
Auto Trait Implementations
impl RefUnwindSafe for UnitKind
impl Send for UnitKind
impl Sync for UnitKind
impl Unpin for UnitKind
impl UnwindSafe for UnitKind
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