Class SingularityGeneratorSystem
Inheritance
System.Object
SingularityGeneratorSystem
Namespace: Content.Server.Singularity.EntitySystems
Assembly: Content.Server.dll
Syntax
public sealed class SingularityGeneratorSystem : EntitySystem
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
SetPower(EntityUid, Single, SingularityGeneratorComponent)
Setter for Power If the singularity generator passes its threshold it also spawns a singularity.
Declaration
public void SetPower(EntityUid uid, float value, SingularityGeneratorComponent comp = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.Single | value | The new power level for the generator component to have. |
SingularityGeneratorComponent | comp | The singularity generator component. |
SetThreshold(EntityUid, Single, SingularityGeneratorComponent)
Setter for Threshold If the singularity generator has passed its new threshold it also spawns a singularity.
Declaration
public void SetThreshold(EntityUid uid, float value, SingularityGeneratorComponent comp = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.Single | value | The new threshold power level for the generator component to have. |
SingularityGeneratorComponent | comp | The singularity generator component. |
Shutdown()
Declaration
public override void Shutdown()