Enum Entity

Source
#[non_exhaustive]
pub enum Entity<'a> {
Show 170 variants AmbientGeneric(AmbientGeneric<'a>), Cycler(Cycler<'a>), EnvBeam(EnvBeam<'a>), EnvBubbles(EnvBubbles<'a>), EnvDetailController(EnvDetailController), EnvEmbers(EnvEmbers<'a>), EnvEntityMaker(EnvEntityMaker<'a>), EnvExplosion(EnvExplosion<'a>), EnvFade(EnvFade<'a>), EnvFire(EnvFire<'a>), EnvFireTrail(EnvFireTrail<'a>), EnvFiresource(EnvFiresource), EnvFogController(EnvFogController<'a>), EnvHudhint(EnvHudhint<'a>), EnvLaser(EnvLaser<'a>), EnvLightglow(EnvLightglow), EnvPhysexplosion(EnvPhysexplosion<'a>), EnvProjectedtexture(EnvProjectedtexture<'a>), EnvScreenoverlay(EnvScreenoverlay<'a>), EnvShake(EnvShake<'a>), EnvShooter(EnvShooter<'a>), EnvSmokestack(EnvSmokestack<'a>), EnvSoundscape(EnvSoundscape<'a>), EnvSoundscapeProxy(EnvSoundscapeProxy<'a>), EnvSoundscapeTriggerable(EnvSoundscapeTriggerable<'a>), EnvSpark(EnvSpark<'a>), EnvSprite(EnvSprite<'a>), EnvSpritetrail(EnvSpritetrail<'a>), EnvSteam(EnvSteam<'a>), EnvSun(EnvSun<'a>), EnvTonemapController(EnvTonemapController<'a>), EnvWind(EnvWind), FilterActivatorClass(FilterActivatorClass<'a>), FilterActivatorName(FilterActivatorName<'a>), FilterDamageType(FilterDamageType<'a>), FilterMulti(FilterMulti<'a>), FuncAreaportal(FuncAreaportal<'a>), FuncAreaportalwindow(FuncAreaportalwindow<'a>), FuncBombTarget(FuncBombTarget<'a>), FuncBreakable(FuncBreakable<'a>), FuncBreakableSurf(FuncBreakableSurf<'a>), FuncBrush(FuncBrush<'a>), FuncButton(FuncButton<'a>), FuncBuyzone(FuncBuyzone<'a>), FuncClipVphysics(FuncClipVphysics<'a>), FuncConveyor(FuncConveyor<'a>), FuncDoor(FuncDoor<'a>), FuncDoorRotating(FuncDoorRotating<'a>), FuncDustcloud(FuncDustcloud<'a>), FuncDustmotes(FuncDustmotes<'a>), FuncFishPool(FuncFishPool<'a>), FuncFootstepControl(FuncFootstepControl<'a>), FuncHostageRescue(FuncHostageRescue<'a>), FuncIllusionary(FuncIllusionary<'a>), FuncLod(FuncLod<'a>), FuncMonitor(FuncMonitor<'a>), FuncMovelinear(FuncMovelinear<'a>), FuncOccluder(FuncOccluder<'a>), FuncPhysbox(FuncPhysbox<'a>), FuncPhysboxMultiplayer(FuncPhysboxMultiplayer<'a>), FuncPrecipitation(FuncPrecipitation<'a>), FuncRotButton(FuncRotButton<'a>), FuncRotating(FuncRotating<'a>), FuncSmokevolume(FuncSmokevolume<'a>), FuncTracktrain(FuncTracktrain<'a>), FuncTrain(FuncTrain<'a>), FuncWall(FuncWall<'a>), FuncWallToggle(FuncWallToggle<'a>), FuncWaterAnalog(FuncWaterAnalog<'a>), GamePlayerEquip(GamePlayerEquip<'a>), GameText(GameText<'a>), GameUi(GameUi<'a>), GameWeaponManager(GameWeaponManager<'a>), HostageEntity(HostageEntity<'a>), InfoCameraLink(InfoCameraLink<'a>), InfoLadder(InfoLadder), InfoLightingRelative(InfoLightingRelative<'a>), InfoMapParameters(InfoMapParameters), InfoNode(InfoNode), InfoNodeHint(InfoNodeHint), InfoParticleSystem(InfoParticleSystem<'a>), InfoPlayerCounterterrorist(InfoPlayerCounterterrorist), InfoPlayerLogo(InfoPlayerLogo), InfoPlayerStart(InfoPlayerStart), InfoPlayerTerrorist(InfoPlayerTerrorist), InfoTarget(InfoTarget<'a>), InfoTeleportDestination(InfoTeleportDestination<'a>), Infodecal(Infodecal<'a>), KeyframeRope(KeyframeRope<'a>), Light(Light<'a>), LightEnvironment(LightEnvironment<'a>), LightSpot(LightSpot<'a>), LogicAuto(LogicAuto<'a>), LogicBranch(LogicBranch<'a>), LogicCase(LogicCase<'a>), LogicCompare(LogicCompare<'a>), LogicMeasureMovement(LogicMeasureMovement<'a>), LogicRelay(LogicRelay<'a>), LogicTimer(LogicTimer<'a>), MathCounter(MathCounter<'a>), MoveRope(MoveRope<'a>), PathTrack(PathTrack<'a>), PhysBallsocket(PhysBallsocket<'a>), PhysConstraint(PhysConstraint<'a>), PhysConstraintsystem(PhysConstraintsystem<'a>), PhysHinge(PhysHinge<'a>), PhysKeepupright(PhysKeepupright<'a>), PhysLengthconstraint(PhysLengthconstraint<'a>), PhysPulleyconstraint(PhysPulleyconstraint<'a>), PhysRagdollconstraint(PhysRagdollconstraint<'a>), PhysRagdollmagnet(PhysRagdollmagnet), PhysThruster(PhysThruster<'a>), PhysTorque(PhysTorque<'a>), PlayerSpeedmod(PlayerSpeedmod<'a>), PlayerWeaponstrip(PlayerWeaponstrip<'a>), PointCamera(PointCamera<'a>), PointClientcommand(PointClientcommand<'a>), PointDevshotCamera(PointDevshotCamera<'a>), PointServercommand(PointServercommand<'a>), PointSpotlight(PointSpotlight<'a>), PointSurroundtest(PointSurroundtest<'a>), PointTemplate(PointTemplate<'a>), PointTesla(PointTesla<'a>), PointViewcontrol(PointViewcontrol<'a>), PropDoorRotating(PropDoorRotating<'a>), PropDynamic(PropDynamic<'a>), PropDynamicOverride(PropDynamicOverride<'a>), PropPhysics(PropPhysics<'a>), PropPhysicsMultiplayer(PropPhysicsMultiplayer<'a>), PropPhysicsOverride(PropPhysicsOverride<'a>), PropRagdoll(PropRagdoll<'a>), ShadowControl(ShadowControl), SkyCamera(SkyCamera), TriggerGravity(TriggerGravity<'a>), TriggerHurt(TriggerHurt<'a>), TriggerLook(TriggerLook<'a>), TriggerMultiple(TriggerMultiple<'a>), TriggerOnce(TriggerOnce<'a>), TriggerProximity(TriggerProximity<'a>), TriggerPush(TriggerPush<'a>), TriggerSoundscape(TriggerSoundscape<'a>), TriggerTeleport(TriggerTeleport<'a>), TriggerVphysicsMotion(TriggerVphysicsMotion<'a>), TriggerWind(TriggerWind<'a>), WaterLodControl(WaterLodControl<'a>), WeaponAk47(WeaponAk47<'a>), WeaponAwp(WeaponAwp<'a>), WeaponDeagle(WeaponDeagle<'a>), WeaponElite(WeaponElite<'a>), WeaponFamas(WeaponFamas), WeaponFiveseven(WeaponFiveseven<'a>), WeaponFlashbang(WeaponFlashbang<'a>), WeaponG3sg1(WeaponG3sg1), WeaponGlock(WeaponGlock<'a>), WeaponHegrenade(WeaponHegrenade<'a>), WeaponKnife(WeaponKnife<'a>), WeaponM249(WeaponM249<'a>), WeaponM3(WeaponM3<'a>), WeaponM4a1(WeaponM4a1<'a>), WeaponMac10(WeaponMac10), WeaponP228(WeaponP228<'a>), WeaponP90(WeaponP90<'a>), WeaponScout(WeaponScout<'a>), WeaponSg550(WeaponSg550), WeaponSmokegrenade(WeaponSmokegrenade<'a>), WeaponTmp(WeaponTmp), WeaponUmp45(WeaponUmp45<'a>), WeaponUsp(WeaponUsp<'a>), WeaponXm1014(WeaponXm1014<'a>), Worldspawn(Worldspawn<'a>),
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AmbientGeneric(AmbientGeneric<'a>)

§

Cycler(Cycler<'a>)

§

EnvBeam(EnvBeam<'a>)

§

EnvBubbles(EnvBubbles<'a>)

§

EnvDetailController(EnvDetailController)

§

EnvEmbers(EnvEmbers<'a>)

§

EnvEntityMaker(EnvEntityMaker<'a>)

§

EnvExplosion(EnvExplosion<'a>)

§

EnvFade(EnvFade<'a>)

§

EnvFire(EnvFire<'a>)

§

EnvFireTrail(EnvFireTrail<'a>)

§

EnvFiresource(EnvFiresource)

§

EnvFogController(EnvFogController<'a>)

§

EnvHudhint(EnvHudhint<'a>)

§

EnvLaser(EnvLaser<'a>)

§

EnvLightglow(EnvLightglow)

§

EnvPhysexplosion(EnvPhysexplosion<'a>)

§

EnvProjectedtexture(EnvProjectedtexture<'a>)

§

EnvScreenoverlay(EnvScreenoverlay<'a>)

§

EnvShake(EnvShake<'a>)

§

EnvShooter(EnvShooter<'a>)

§

EnvSmokestack(EnvSmokestack<'a>)

§

EnvSoundscape(EnvSoundscape<'a>)

§

EnvSoundscapeProxy(EnvSoundscapeProxy<'a>)

§

EnvSoundscapeTriggerable(EnvSoundscapeTriggerable<'a>)

§

EnvSpark(EnvSpark<'a>)

§

EnvSprite(EnvSprite<'a>)

§

EnvSpritetrail(EnvSpritetrail<'a>)

§

EnvSteam(EnvSteam<'a>)

§

EnvSun(EnvSun<'a>)

§

EnvTonemapController(EnvTonemapController<'a>)

§

EnvWind(EnvWind)

§

FilterActivatorClass(FilterActivatorClass<'a>)

§

FilterActivatorName(FilterActivatorName<'a>)

§

FilterDamageType(FilterDamageType<'a>)

§

FilterMulti(FilterMulti<'a>)

§

FuncAreaportal(FuncAreaportal<'a>)

§

FuncAreaportalwindow(FuncAreaportalwindow<'a>)

§

FuncBombTarget(FuncBombTarget<'a>)

§

FuncBreakable(FuncBreakable<'a>)

§

FuncBreakableSurf(FuncBreakableSurf<'a>)

§

FuncBrush(FuncBrush<'a>)

§

FuncButton(FuncButton<'a>)

§

FuncBuyzone(FuncBuyzone<'a>)

§

FuncClipVphysics(FuncClipVphysics<'a>)

§

FuncConveyor(FuncConveyor<'a>)

§

FuncDoor(FuncDoor<'a>)

§

FuncDoorRotating(FuncDoorRotating<'a>)

§

FuncDustcloud(FuncDustcloud<'a>)

§

FuncDustmotes(FuncDustmotes<'a>)

§

FuncFishPool(FuncFishPool<'a>)

§

FuncFootstepControl(FuncFootstepControl<'a>)

§

FuncHostageRescue(FuncHostageRescue<'a>)

§

FuncIllusionary(FuncIllusionary<'a>)

§

FuncLod(FuncLod<'a>)

§

FuncMonitor(FuncMonitor<'a>)

§

FuncMovelinear(FuncMovelinear<'a>)

§

FuncOccluder(FuncOccluder<'a>)

§

FuncPhysbox(FuncPhysbox<'a>)

§

FuncPhysboxMultiplayer(FuncPhysboxMultiplayer<'a>)

§

FuncPrecipitation(FuncPrecipitation<'a>)

§

FuncRotButton(FuncRotButton<'a>)

§

FuncRotating(FuncRotating<'a>)

§

FuncSmokevolume(FuncSmokevolume<'a>)

§

FuncTracktrain(FuncTracktrain<'a>)

§

FuncTrain(FuncTrain<'a>)

§

FuncWall(FuncWall<'a>)

§

FuncWallToggle(FuncWallToggle<'a>)

§

FuncWaterAnalog(FuncWaterAnalog<'a>)

§

GamePlayerEquip(GamePlayerEquip<'a>)

§

GameText(GameText<'a>)

§

GameUi(GameUi<'a>)

§

GameWeaponManager(GameWeaponManager<'a>)

§

HostageEntity(HostageEntity<'a>)

§

InfoLadder(InfoLadder)

§

InfoLightingRelative(InfoLightingRelative<'a>)

§

InfoMapParameters(InfoMapParameters)

§

InfoNode(InfoNode)

§

InfoNodeHint(InfoNodeHint)

§

InfoParticleSystem(InfoParticleSystem<'a>)

§

InfoPlayerCounterterrorist(InfoPlayerCounterterrorist)

§

InfoPlayerStart(InfoPlayerStart)

§

InfoPlayerTerrorist(InfoPlayerTerrorist)

§

InfoTarget(InfoTarget<'a>)

§

InfoTeleportDestination(InfoTeleportDestination<'a>)

§

Infodecal(Infodecal<'a>)

§

KeyframeRope(KeyframeRope<'a>)

§

Light(Light<'a>)

§

LightEnvironment(LightEnvironment<'a>)

§

LightSpot(LightSpot<'a>)

§

LogicAuto(LogicAuto<'a>)

§

LogicBranch(LogicBranch<'a>)

§

LogicCase(LogicCase<'a>)

§

LogicCompare(LogicCompare<'a>)

§

LogicMeasureMovement(LogicMeasureMovement<'a>)

§

LogicRelay(LogicRelay<'a>)

§

LogicTimer(LogicTimer<'a>)

§

MathCounter(MathCounter<'a>)

§

MoveRope(MoveRope<'a>)

§

PathTrack(PathTrack<'a>)

§

PhysBallsocket(PhysBallsocket<'a>)

§

PhysConstraint(PhysConstraint<'a>)

§

PhysConstraintsystem(PhysConstraintsystem<'a>)

§

PhysHinge(PhysHinge<'a>)

§

PhysKeepupright(PhysKeepupright<'a>)

§

PhysLengthconstraint(PhysLengthconstraint<'a>)

§

PhysPulleyconstraint(PhysPulleyconstraint<'a>)

§

PhysRagdollconstraint(PhysRagdollconstraint<'a>)

§

PhysRagdollmagnet(PhysRagdollmagnet)

§

PhysThruster(PhysThruster<'a>)

§

PhysTorque(PhysTorque<'a>)

§

PlayerSpeedmod(PlayerSpeedmod<'a>)

§

PlayerWeaponstrip(PlayerWeaponstrip<'a>)

§

PointCamera(PointCamera<'a>)

§

PointClientcommand(PointClientcommand<'a>)

§

PointDevshotCamera(PointDevshotCamera<'a>)

§

PointServercommand(PointServercommand<'a>)

§

PointSpotlight(PointSpotlight<'a>)

§

PointSurroundtest(PointSurroundtest<'a>)

§

PointTemplate(PointTemplate<'a>)

§

PointTesla(PointTesla<'a>)

§

PointViewcontrol(PointViewcontrol<'a>)

§

PropDoorRotating(PropDoorRotating<'a>)

§

PropDynamic(PropDynamic<'a>)

§

PropDynamicOverride(PropDynamicOverride<'a>)

§

PropPhysics(PropPhysics<'a>)

§

PropPhysicsMultiplayer(PropPhysicsMultiplayer<'a>)

§

PropPhysicsOverride(PropPhysicsOverride<'a>)

§

PropRagdoll(PropRagdoll<'a>)

§

ShadowControl(ShadowControl)

§

SkyCamera(SkyCamera)

§

TriggerGravity(TriggerGravity<'a>)

§

TriggerHurt(TriggerHurt<'a>)

§

TriggerLook(TriggerLook<'a>)

§

TriggerMultiple(TriggerMultiple<'a>)

§

TriggerOnce(TriggerOnce<'a>)

§

TriggerProximity(TriggerProximity<'a>)

§

TriggerPush(TriggerPush<'a>)

§

TriggerSoundscape(TriggerSoundscape<'a>)

§

TriggerTeleport(TriggerTeleport<'a>)

§

TriggerVphysicsMotion(TriggerVphysicsMotion<'a>)

§

TriggerWind(TriggerWind<'a>)

§

WaterLodControl(WaterLodControl<'a>)

§

WeaponAk47(WeaponAk47<'a>)

§

WeaponAwp(WeaponAwp<'a>)

§

WeaponDeagle(WeaponDeagle<'a>)

§

WeaponElite(WeaponElite<'a>)

§

WeaponFamas(WeaponFamas)

§

WeaponFiveseven(WeaponFiveseven<'a>)

§

WeaponFlashbang(WeaponFlashbang<'a>)

§

WeaponG3sg1(WeaponG3sg1)

§

WeaponGlock(WeaponGlock<'a>)

§

WeaponHegrenade(WeaponHegrenade<'a>)

§

WeaponKnife(WeaponKnife<'a>)

§

WeaponM249(WeaponM249<'a>)

§

WeaponM3(WeaponM3<'a>)

§

WeaponM4a1(WeaponM4a1<'a>)

§

WeaponMac10(WeaponMac10)

§

WeaponP228(WeaponP228<'a>)

§

WeaponP90(WeaponP90<'a>)

§

WeaponScout(WeaponScout<'a>)

§

WeaponSg550(WeaponSg550)

§

WeaponSmokegrenade(WeaponSmokegrenade<'a>)

§

WeaponTmp(WeaponTmp)

§

WeaponUmp45(WeaponUmp45<'a>)

§

WeaponUsp(WeaponUsp<'a>)

§

WeaponXm1014(WeaponXm1014<'a>)

§

Worldspawn(Worldspawn<'a>)

Trait Implementations§

Source§

impl<'a> Clone for Entity<'a>

Source§

fn clone(&self) -> Entity<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Entity<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de: 'a, 'a> Deserialize<'de> for Entity<'a>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Entity<'a>

§

impl<'a> RefUnwindSafe for Entity<'a>

§

impl<'a> Send for Entity<'a>

§

impl<'a> Sync for Entity<'a>

§

impl<'a> Unpin for Entity<'a>

§

impl<'a> UnwindSafe for Entity<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoResult<T> for T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,