Class ContainmentFieldGeneratorSystem
Inheritance
System.Object
ContainmentFieldGeneratorSystem
Namespace: Content.Server.Singularity.EntitySystems
Assembly: Content.Server.dll
Syntax
public sealed class ContainmentFieldGeneratorSystem : EntitySystem
Methods
| Improve this Doc View SourceGridCheck(EntityUid, ContainmentFieldGeneratorComponent)
Checks to see if this or the other gens connected to a new grid. If they did, remove connection.
Declaration
public void GridCheck(EntityUid uid, ContainmentFieldGeneratorComponent component)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
ContainmentFieldGeneratorComponent | component |
Initialize()
Declaration
public override void Initialize()
LosePower(EntityUid, Int32, ContainmentFieldGeneratorComponent)
Declaration
public void LosePower(EntityUid uid, int power, ContainmentFieldGeneratorComponent component)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.Int32 | power | |
ContainmentFieldGeneratorComponent | component |
ReceivePower(Int32, ContainmentFieldGeneratorComponent)
Stores power in the generator. If it hits the threshold, it tries to establish a connection.
Declaration
public void ReceivePower(int power, ContainmentFieldGeneratorComponent component)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | power | The power that this generator received from the collision in Content.Server.Singularity.EntitySystems.ContainmentFieldGeneratorSystem.HandleGeneratorCollide(EntityUid,Content.Shared.Singularity.Components.ContainmentFieldGeneratorComponent,Robust.Shared.Physics.Events.StartCollideEvent@) |
ContainmentFieldGeneratorComponent | component |
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
Type | Name | Description |
---|---|---|
System.Single | frameTime |
UpdateConnectionLights(ContainmentFieldGeneratorComponent)
Creates a light component for the spawned fields.
Declaration
public void UpdateConnectionLights(ContainmentFieldGeneratorComponent component)
Parameters
Type | Name | Description |
---|---|---|
ContainmentFieldGeneratorComponent | component |