]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Update content to remove redundant Robust math types (#38930)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 22 Jul 2025 10:29:17 +0000 (12:29 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Jul 2025 10:29:17 +0000 (12:29 +0200)
Vector3, Vector4, Matrix4, and Quaternion are now gone. This switches us over to System.Numerics where applicable.

Content.Client/Cooldown/CooldownGraphic.cs
Content.Client/Disposal/PressureBar.cs
Content.Client/Holopad/HolopadSystem.cs
Content.Client/Light/RgbLightControllerSystem.cs
Content.Client/Power/APC/UI/ApcMenu.xaml.cs
Content.Client/Power/PowerMonitoringWindow.xaml.Widgets.cs
Content.Client/Shuttles/UI/BaseShuttleControl.xaml.cs
Content.Client/UserInterface/Systems/DamageOverlays/Overlays/DamageOverlay.cs
Content.Client/UserInterface/Systems/ProgressColorSystem.cs
Content.Client/UserInterface/Systems/Storage/Controls/StorageWindow.cs
Content.Shared/Humanoid/SkinColor.cs

index 6779e4027a7e73c37322773dbe396a9d55eaa757..c973b9572bd2f0297334e59e749826f58dd5c881 100644 (file)
@@ -1,4 +1,5 @@
-using Robust.Client.Graphics;
+using System.Numerics;
+using Robust.Client.Graphics;
 using Robust.Client.UserInterface;
 using Robust.Shared.Prototypes;
 using Robust.Shared.Timing;
@@ -36,7 +37,7 @@ namespace Content.Client.Cooldown
             if (Progress >= 0f)
             {
                 var hue = (5f / 18f) * lerp;
-                color = Color.FromHsv((hue, 0.75f, 0.75f, 0.50f));
+                color = Color.FromHsv(new Vector4(hue, 0.75f, 0.75f, 0.50f));
             }
             else
             {
index 7b2ebacaf7c7a9703abed6dbff5d9ea8358cd547..de785de8c6baadb7c0893b9fdf0f5bf964e6f419 100644 (file)
@@ -1,4 +1,5 @@
-using Content.Shared.Disposal;
+using System.Numerics;
+using Content.Shared.Disposal;
 using Content.Shared.Disposal.Unit;
 using Robust.Client.Graphics;
 using Robust.Client.UserInterface.Controls;
index 9fc08155169fde35a95814be235fd3e035f1f8ad..51491de98fd12569c5f5d71cf465b9d2ec93d6b5 100644 (file)
@@ -5,6 +5,7 @@ using Robust.Client.Graphics;
 using Robust.Shared.Prototypes;
 using Robust.Shared.Timing;
 using System.Linq;
+using System.Numerics;
 using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
 
 namespace Content.Client.Holopad;
index 9977a35118593d29e78d5870489557b2277a05c8..292820ec27bdd23032c00f5f66af2538efba2696 100644 (file)
@@ -1,4 +1,5 @@
 using System.Linq;
+using System.Numerics;
 using Content.Client.Items.Systems;
 using Content.Shared.Clothing;
 using Content.Shared.Hands;
index 25e885b3c7a1855a603d71f33d84d9000595980d..65464abd540c548b93692e6f972943cc46f949ac 100644 (file)
@@ -3,6 +3,7 @@ using Robust.Client.UserInterface.XAML;
 using Robust.Client.GameObjects;
 using Robust.Shared.IoC;
 using System;
+using System.Numerics;
 using Content.Client.Stylesheets;
 using Content.Shared.APC;
 using Robust.Client.Graphics;
index d3671e265ac3bc34cf381d4af2245e7f8b39072a..e2b27c1b622f80dbefa092f6263eb33fa70e0186 100644 (file)
@@ -6,7 +6,6 @@ using Robust.Shared.Utility;
 using System.Diagnostics.CodeAnalysis;
 using System.Linq;
 using System.Numerics;
-using Vector4 = Robust.Shared.Maths.Vector4;
 
 namespace Content.Client.Power;
 
index 8bb49bdb2b320c260ffe76af5bf23f09f725831e..c2d978e609c863f465f7c7cb39289b8a6614c43b 100644 (file)
@@ -10,7 +10,6 @@ using Robust.Shared.Physics;
 using Robust.Shared.Threading;
 using Robust.Shared.Timing;
 using Robust.Shared.Utility;
-using Vector2 = System.Numerics.Vector2;
 
 namespace Content.Client.Shuttles.UI;
 
index 3eef88f19bb1fe4555a4066782cd0d2e4c8cfde7..1b9e4e2c4ab8c6c002deb689120a839e6286761a 100644 (file)
@@ -1,3 +1,4 @@
+using System.Numerics;
 using Content.Shared.Mobs;
 using Robust.Client.Graphics;
 using Robust.Client.Player;
index e5579801ecebb7f718f89c3497d72f93d5413844..3d5f8d95611544be8edc8b222c8869345710b0ef 100644 (file)
@@ -1,3 +1,4 @@
+using System.Numerics;
 using Content.Shared.CCVar;
 using Robust.Shared.Configuration;
 
@@ -43,7 +44,7 @@ public sealed class ProgressColorSystem : EntitySystem
 
             // lerp
             var hue = 5f / 18f * progress;
-            return Color.FromHsv((hue, 1f, 0.75f, 1f));
+            return Color.FromHsv(new Vector4(hue, 1f, 0.75f, 1f));
         }
 
         return InterpolateColorGaussian(Plasma, progress);
index 8b66ed8892a180836e0522ddd0437cb4f8f97e24..392532c7b70f19025d6645484c7871e9594653a6 100644 (file)
@@ -621,7 +621,7 @@ public sealed class StorageWindow : BaseWindow
                         {
                             marked.Add(cell);
                             cell.ModulateSelfOverride = spotFree
-                                ? Color.FromHsv((0.18f, 1 / spot, 0.5f / spot + 0.5f, 1f))
+                                ? Color.FromHsv(new Vector4(0.18f, 1 / spot, 0.5f / spot + 0.5f, 1f))
                                 : Color.FromHex("#2222CC");
                         }
                     }
index 2dc95fcf076b877d41ecc99f3e13329fbcd0331a..d4d52682f3eddd97abe566429498a8ee5ffaa7b0 100644 (file)
@@ -1,3 +1,4 @@
+using System.Numerics;
 using System.Security.Cryptography;
 using Microsoft.VisualBasic.CompilerServices;