Update content vectors to numerics (#17759)

This commit is contained in:
metalgearsloth
2023-07-08 14:08:32 +10:00
committed by GitHub
parent 15772478c9
commit 68480af109
383 changed files with 978 additions and 575 deletions

View File

@@ -1,3 +1,4 @@
using System.Numerics;
using Content.Shared.Damage;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
@@ -112,7 +113,7 @@ public sealed class AnomalyComponent : Component
/// This is more likely to trend upwards than donwards, because that's funny
/// </remarks>
[DataField("pulseStabilityVariation")]
public Vector2 PulseStabilityVariation = (-0.1f, 0.15f);
public Vector2 PulseStabilityVariation = new(-0.1f, 0.15f);
/// <summary>
/// The sound played when an anomaly pulses
@@ -219,7 +220,7 @@ public sealed class AnomalyComponent : Component
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("offset")]
public readonly Vector2 FloatingOffset = (0, 0.15f);
public readonly Vector2 FloatingOffset = new(0, 0.15f);
public readonly string AnimationKey = "anomalyfloat";
#endregion