Show / Hide Table of Contents

Class AnomalySystem

This handles logic and interactions relating to AnomalyComponent

Inheritance
System.Object
SharedAnomalySystem
AnomalySystem
Namespace: Content.Server.Anomaly
Assembly: Content.Server.dll
Syntax
public sealed class AnomalySystem : SharedAnomalySystem

Fields

| Improve this Doc View Source

MaxParticleVariation

Declaration
public const float MaxParticleVariation = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

MinParticleVariation

Declaration
public const float MinParticleVariation = null
Field Value
Type Description
System.Single

Methods

| Improve this Doc View Source

GetAnomalyPointValue(EntityUid, AnomalyComponent)

Gets the amount of research points generated per second for an anomaly.

Declaration
public int GetAnomalyPointValue(EntityUid anomaly, AnomalyComponent component = null)
Parameters
Type Name Description
EntityUid anomaly
AnomalyComponent component
Returns
Type Description
System.Int32

The amount of points

| Improve this Doc View Source

GetParticleLocale(AnomalousParticleType)

Gets the localized name of a particle.

Declaration
public string GetParticleLocale(AnomalousParticleType type)
Parameters
Type Name Description
AnomalousParticleType type
Returns
Type Description
System.String
| Improve this Doc View Source

GetScannerMessage(AnomalyScannerComponent)

Declaration
public FormattedMessage GetScannerMessage(AnomalyScannerComponent component)
Parameters
Type Name Description
AnomalyScannerComponent component
Returns
Type Description
Robust.Shared.Utility.FormattedMessage
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
SharedAnomalySystem.Initialize()
| Improve this Doc View Source

InitializeCommands()

Declaration
public void InitializeCommands()
| Improve this Doc View Source

SpawnOnRandomGridLocation(EntityUid, String)

Declaration
public void SpawnOnRandomGridLocation(EntityUid grid, string toSpawn)
Parameters
Type Name Description
EntityUid grid
System.String toSpawn
| Improve this Doc View Source

TryGeneratorCreateAnomaly(EntityUid, AnomalyGeneratorComponent)

Declaration
public void TryGeneratorCreateAnomaly(EntityUid uid, AnomalyGeneratorComponent component = null)
Parameters
Type Name Description
EntityUid uid
AnomalyGeneratorComponent component
| Improve this Doc View Source

Update(Single)

Declaration
public override void Update(float frameTime)
Parameters
Type Name Description
System.Single frameTime
Overrides
SharedAnomalySystem.Update(Single)
| Improve this Doc View Source

UpdateGeneratorUi(EntityUid, AnomalyGeneratorComponent)

Declaration
public void UpdateGeneratorUi(EntityUid uid, AnomalyGeneratorComponent component)
Parameters
Type Name Description
EntityUid uid
AnomalyGeneratorComponent component
| Improve this Doc View Source

UpdateScannerUi(EntityUid, AnomalyScannerComponent)

Declaration
public void UpdateScannerUi(EntityUid uid, AnomalyScannerComponent component = null)
Parameters
Type Name Description
EntityUid uid
AnomalyScannerComponent component
| Improve this Doc View Source

UpdateScannerWithNewAnomaly(EntityUid, EntityUid, AnomalyScannerComponent, AnomalyComponent)

Declaration
public void UpdateScannerWithNewAnomaly(EntityUid scanner, EntityUid anomaly, AnomalyScannerComponent scannerComp = null, AnomalyComponent anomalyComp = null)
Parameters
Type Name Description
EntityUid scanner
EntityUid anomaly
AnomalyScannerComponent scannerComp
AnomalyComponent anomalyComp
| Improve this Doc View Source

UpdateVesselAppearance(EntityUid, AnomalyVesselComponent)

Updates the appearance of an anomaly vessel based on whether or not it has an anomaly

Declaration
public void UpdateVesselAppearance(EntityUid uid, AnomalyVesselComponent component = null)
Parameters
Type Name Description
EntityUid uid
AnomalyVesselComponent component
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾