Class SingularityComponent
A component that makes the associated entity accumulate energy when an associated event horizon consumes things. Energy management is server-side.
Inheritance
Namespace: Content.Shared.Singularity.Components
Assembly: Content.Shared.dll
Syntax
public sealed class SingularityComponent : Component
Fields
| Improve this Doc View SourceAmbientSound
The sound that this singularity produces by existing.
Declaration
public SoundSpecifier AmbientSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
AmbientSoundStream
The audio stream that plays the sound specified by AmbientSound on loop.
Declaration
public IPlayingAudioStream AmbientSoundStream
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.IPlayingAudioStream |
DissipationSound
The sound that the singularity produces when it dissipates.
Declaration
public SoundSpecifier DissipationSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
Energy
The amount of energy this singularity contains.
Declaration
public float Energy
Field Value
Type | Description |
---|---|
System.Single |
EnergyDrain
The rate at which this singularity loses energy over time.
Declaration
public float EnergyDrain
Field Value
Type | Description |
---|---|
System.Single |
FormationSound
The sound that the singularity produces when it forms.
Declaration
public SoundSpecifier FormationSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
LastUpdateTime
The last time this singularity was updated.
Declaration
public TimeSpan LastUpdateTime
Field Value
Type | Description |
---|---|
TimeSpan |
Level
The current level of the singularity. Used as a scaling factor for things like visual size, event horizon radius, gravity well radius, radiation output, etc. If you want to set this use SetLevel(EntityUid, Byte, SingularityComponent)().
Declaration
public byte Level
Field Value
Type | Description |
---|---|
System.Byte |
NextUpdateTime
Declaration
public TimeSpan NextUpdateTime
Field Value
Type | Description |
---|---|
TimeSpan |
RadsPerLevel
The amount of radiation this singularity emits per its level. Has to be on shared in case someone attaches a RadiationPulseComponent to the singularity. If you want to set this use SetRadsPerLevel(EntityUid, Single, SingularityComponent)().
Declaration
public float RadsPerLevel
Field Value
Type | Description |
---|---|
System.Single |
TargetUpdatePeriod
The amount of time that should elapse between automated updates to this singularity.
Declaration
public TimeSpan TargetUpdatePeriod
Field Value
Type | Description |
---|---|
TimeSpan |