Remove redundant read-only VV from datafields (#12626)

This commit is contained in:
DrSmugleaf
2022-11-16 20:22:11 +01:00
committed by GitHub
parent fb892cb374
commit 7fbc2608e8
179 changed files with 171 additions and 462 deletions

View File

@@ -10,7 +10,6 @@ public sealed class ContainmentFieldComponent : SharedContainmentFieldComponent
/// The throw force for the field if an entity collides with it
/// The lighter the mass the further it will throw. 5 mass will go about 4 tiles out, 70 mass goes only a couple tiles.
/// </summary>
[ViewVariables]
[DataField("throwForce")]
public float ThrowForce = 100f;
@@ -18,7 +17,6 @@ public sealed class ContainmentFieldComponent : SharedContainmentFieldComponent
/// This shouldn't be at 99999 or higher to prevent the singulo glitching out
/// Will throw anything at the supplied mass or less that collides with the field.
/// </summary>
[ViewVariables]
[DataField("maxMass")]
public float MaxMass = 10000f;
}

View File

@@ -14,7 +14,6 @@ public sealed class ContainmentFieldGeneratorComponent : SharedContainmentFieldG
/// <summary>
/// Store power with a cap. Decrease over time if not being powered from source.
/// </summary>
[ViewVariables]
[DataField("powerBuffer")]
public int PowerBuffer
{
@@ -46,21 +45,18 @@ public sealed class ContainmentFieldGeneratorComponent : SharedContainmentFieldG
/// <summary>
/// Used to check if it's received power recently.
/// </summary>
[ViewVariables]
[DataField("accumulator")]
public float Accumulator;
/// <summary>
/// How many seconds should the generators wait before losing power?
/// </summary>
[ViewVariables]
[DataField("threshold")]
public float Threshold = 10f;
/// <summary>
/// How many tiles should this field check before giving up?
/// </summary>
[ViewVariables]
[DataField("maxLength")]
public float MaxLength = 8F;
@@ -87,7 +83,6 @@ public sealed class ContainmentFieldGeneratorComponent : SharedContainmentFieldG
/// <summary>
/// The masks the raycast should not go through
/// </summary>
[ViewVariables]
[DataField("collisionMask")]
public int CollisionMask = (int) (CollisionGroup.MobMask | CollisionGroup.Impassable | CollisionGroup.MachineMask | CollisionGroup.Opaque);

View File

@@ -26,19 +26,19 @@ namespace Content.Server.Singularity.Components
[ViewVariables]
public int FireShotCounter;
[DataField("fireSound"), ViewVariables]
[DataField("fireSound")]
public SoundSpecifier FireSound = new SoundPathSpecifier("/Audio/Weapons/emitter.ogg");
/// <summary>
/// The entity that is spawned when the emitter fires.
/// </summary>
[DataField("boltType"), ViewVariables]
[DataField("boltType")]
public string BoltType = "EmitterBolt";
/// <summary>
/// The current amount of power being used.
/// </summary>
[DataField("powerUseActive"), ViewVariables]
[DataField("powerUseActive")]
public int PowerUseActive = 600;
/// <summary>
@@ -64,13 +64,13 @@ namespace Content.Server.Singularity.Components
/// <summary>
/// The amount of shots that are fired in a single "burst"
/// </summary>
[DataField("fireBurstSize"), ViewVariables]
[DataField("fireBurstSize")]
public int FireBurstSize = 3;
/// <summary>
/// The time between each shot during a burst.
/// </summary>
[DataField("fireInterval"), ViewVariables]
[DataField("fireInterval")]
public TimeSpan FireInterval = TimeSpan.FromSeconds(2);
/// <summary>
@@ -82,27 +82,27 @@ namespace Content.Server.Singularity.Components
/// <summary>
/// The current minimum delay between bursts.
/// </summary>
[DataField("fireBurstDelayMin"), ViewVariables]
[DataField("fireBurstDelayMin")]
public TimeSpan FireBurstDelayMin = TimeSpan.FromSeconds(4);
/// <summary>
/// The current maximum delay between bursts.
/// </summary>
[DataField("fireBurstDelayMax"), ViewVariables]
[DataField("fireBurstDelayMax")]
public TimeSpan FireBurstDelayMax = TimeSpan.FromSeconds(10);
/// <summary>
/// The base minimum delay between shot bursts.
/// Used for machine part rating calculations.
/// </summary>
[DataField("baseFireBurstDelayMin"), ViewVariables]
[DataField("baseFireBurstDelayMin")]
public TimeSpan BaseFireBurstDelayMin = TimeSpan.FromSeconds(4);
/// <summary>
/// The base maximum delay between shot bursts.
/// Used for machine part rating calculations.
/// </summary>
[DataField("baseFireBurstDelayMax"), ViewVariables]
[DataField("baseFireBurstDelayMax")]
public TimeSpan BaseFireBurstDelayMax = TimeSpan.FromSeconds(10);
/// <summary>