Show / Hide Table of Contents

Class SingularityComponent

A component that makes the associated entity accumulate energy when an associated event horizon consumes things. Energy management is server-side.

Inheritance
System.Object
SingularityComponent
Namespace: Content.Shared.Singularity.Components
Assembly: Content.Shared.dll
Syntax
public sealed class SingularityComponent : Component

Fields

| Improve this Doc View Source

AmbientSound

The sound that this singularity produces by existing.

Declaration
public SoundSpecifier AmbientSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

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
| Improve this Doc View Source

DissipationSound

The sound that the singularity produces when it dissipates.

Declaration
public SoundSpecifier DissipationSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

Energy

The amount of energy this singularity contains.

Declaration
public float Energy
Field Value
Type Description
System.Single
| Improve this Doc View Source

EnergyDrain

The rate at which this singularity loses energy over time.

Declaration
public float EnergyDrain
Field Value
Type Description
System.Single
| Improve this Doc View Source

FormationSound

The sound that the singularity produces when it forms.

Declaration
public SoundSpecifier FormationSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

LastUpdateTime

The last time this singularity was updated.

Declaration
public TimeSpan LastUpdateTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

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
| Improve this Doc View Source

NextUpdateTime

Declaration
public TimeSpan NextUpdateTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

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
| Improve this Doc View Source

TargetUpdatePeriod

The amount of time that should elapse between automated updates to this singularity.

Declaration
public TimeSpan TargetUpdatePeriod
Field Value
Type Description
TimeSpan
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾