Enum flattiverse_connector::unit::AnyUnit
source · pub enum AnyUnit {
Show 24 variants
AiUnit(AnyAiUnit),
Asteroid(Arc<Asteroid>),
BlackHole(Arc<BlackHole>),
Buoy(Arc<Buoy>),
Explosion(Arc<Explosion>),
Gate(Arc<Gate>),
Meteoroid(Arc<Meteoroid>),
MissionTarget(Arc<MissionTarget>),
Moon(Arc<Moon>),
Nebula(Arc<Nebula>),
Pixel(Arc<Pixel>),
PixelCluster(Arc<PixelCluster>),
Planet(Arc<Planet>),
PlayerUnit(AnyPlayerUnit),
PowerUp(AnyPowerUp),
Shot(Arc<Shot>),
SpaceJellyFish(Arc<SpaceJellyFish>),
SpaceJellyFishSlime(Arc<SpaceJellyFishSlime>),
Storm(Arc<Storm>),
StormCommencingWhirl(Arc<StormCommencingWhirl>),
StormWhirl(Arc<StormWhirl>),
Sun(Arc<Sun>),
Switch(Arc<Switch>),
WormHole(Arc<WormHole>),
}
Variants
AiUnit(AnyAiUnit)
Asteroid(Arc<Asteroid>)
BlackHole(Arc<BlackHole>)
Buoy(Arc<Buoy>)
Explosion(Arc<Explosion>)
Gate(Arc<Gate>)
Meteoroid(Arc<Meteoroid>)
MissionTarget(Arc<MissionTarget>)
Moon(Arc<Moon>)
Nebula(Arc<Nebula>)
Pixel(Arc<Pixel>)
PixelCluster(Arc<PixelCluster>)
Planet(Arc<Planet>)
PlayerUnit(AnyPlayerUnit)
PowerUp(AnyPowerUp)
Shot(Arc<Shot>)
SpaceJellyFish(Arc<SpaceJellyFish>)
SpaceJellyFishSlime(Arc<SpaceJellyFishSlime>)
Storm(Arc<Storm>)
StormCommencingWhirl(Arc<StormCommencingWhirl>)
StormWhirl(Arc<StormWhirl>)
Sun(Arc<Sun>)
Switch(Arc<Switch>)
WormHole(Arc<WormHole>)
Implementations
sourceimpl AnyUnit
impl AnyUnit
pub fn from_reader(
connector: &Arc<Connector>,
universe_group: &UniverseGroup,
packet: &Packet,
reader: &mut dyn BinaryReader
) -> Result<AnyUnit, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AnyUnit
impl Send for AnyUnit
impl Sync for AnyUnit
impl Unpin for AnyUnit
impl !UnwindSafe for AnyUnit
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