Class SharedAnomalySystem
Inheritance
System.Object
SharedAnomalySystem
Assembly: Content.Shared.dll
Syntax
public abstract class SharedAnomalySystem : EntitySystem
Fields
|
Improve this Doc
View Source
Appearance
Declaration
protected readonly SharedAppearanceSystem Appearance
Field Value
Type |
Description |
SharedAppearanceSystem |
|
|
Improve this Doc
View Source
Audio
Declaration
protected readonly SharedAudioSystem Audio
Field Value
Type |
Description |
SharedAudioSystem |
|
|
Improve this Doc
View Source
Log
Declaration
protected readonly ISharedAdminLogManager Log
Field Value
|
Improve this Doc
View Source
Declaration
protected readonly SharedPopupSystem Popup
Field Value
|
Improve this Doc
View Source
Random
Declaration
protected readonly IRobustRandom Random
Field Value
Type |
Description |
Robust.Shared.Random.IRobustRandom |
|
|
Improve this Doc
View Source
Timing
Declaration
protected readonly IGameTiming Timing
Field Value
Type |
Description |
Robust.Shared.Timing.IGameTiming |
|
Methods
|
Improve this Doc
View Source
ChangeAnomalyHealth(EntityUid, Single, AnomalyComponent)
Changes the health of an anomaly, ending it if it's less than 0.
Declaration
public void ChangeAnomalyHealth(EntityUid uid, float change, AnomalyComponent component = null)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
System.Single |
change |
|
AnomalyComponent |
component |
|
|
Improve this Doc
View Source
ChangeAnomalySeverity(EntityUid, Single, AnomalyComponent)
Changes the severity of an anomaly, going supercritical if it exceeds 1.
Declaration
public void ChangeAnomalySeverity(EntityUid uid, float change, AnomalyComponent component = null)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
System.Single |
change |
|
AnomalyComponent |
component |
|
|
Improve this Doc
View Source
ChangeAnomalyStability(EntityUid, Single, AnomalyComponent)
Changes the stability of the anomaly.
Declaration
public void ChangeAnomalyStability(EntityUid uid, float change, AnomalyComponent component = null)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
System.Single |
change |
|
AnomalyComponent |
component |
|
|
Improve this Doc
View Source
DoAnomalyBurnDamage(EntityUid, EntityUid, AnomalyComponent)
Declaration
public void DoAnomalyBurnDamage(EntityUid source, EntityUid target, AnomalyComponent component)
Parameters
Type |
Name |
Description |
EntityUid |
source |
|
EntityUid |
target |
|
AnomalyComponent |
component |
|
|
Improve this Doc
View Source
DoAnomalyPulse(EntityUid, AnomalyComponent)
Declaration
public void DoAnomalyPulse(EntityUid uid, AnomalyComponent component = null)
Parameters
|
Improve this Doc
View Source
DoAnomalySupercriticalEvent(EntityUid, AnomalyComponent)
Does the supercritical event for the anomaly.
This isn't called once the anomaly reaches the point, but
after the animation for it going supercritical
Declaration
public void DoAnomalySupercriticalEvent(EntityUid uid, AnomalyComponent component = null)
Parameters
|
Improve this Doc
View Source
EndAnomaly(EntityUid, AnomalyComponent, Boolean)
Ends an anomaly, cleaning up all entities that may be associated with it.
Declaration
public void EndAnomaly(EntityUid uid, AnomalyComponent component = null, bool supercritical = false)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
The anomaly being shut down
|
AnomalyComponent |
component |
|
System.Boolean |
supercritical |
Whether or not the anomaly ended via supercritical event
|
|
Improve this Doc
View Source
GetPulseLength(AnomalyComponent)
Gets the length of time between each pulse
for an anomaly based on its current stability.
Declaration
public TimeSpan GetPulseLength(AnomalyComponent component)
Parameters
Returns
Type |
Description |
TimeSpan |
The length of time as a TimeSpan, not including random variation.
|
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
|
Improve this Doc
View Source
StartSupercriticalEvent(EntityUid)
Begins the animation for going supercritical
Declaration
public void StartSupercriticalEvent(EntityUid uid)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
|
Improve this Doc
View Source
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
Type |
Name |
Description |
System.Single |
frameTime |
|