]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove spawn point component references (#15222)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Sat, 8 Apr 2023 23:52:52 +0000 (16:52 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Apr 2023 23:52:52 +0000 (09:52 +1000)
Content.Client/Entry/EntryPoint.cs
Content.Server/Spawners/Components/SpawnPointComponent.cs
Content.Shared/Markers/SharedSpawnPointComponent.cs [deleted file]

index 5901146f897d2e78e9490ca0d1c7cf528343daa4..1d30169019caf46a73ad8e64c0b2d9f8025bb921 100644 (file)
@@ -23,7 +23,6 @@ using Content.Shared.Administration;
 using Content.Shared.AME;
 using Content.Shared.Gravity;
 using Content.Shared.Localizations;
-using Content.Shared.Markers;
 using Robust.Client;
 using Robust.Client.Graphics;
 using Robust.Client.Input;
@@ -85,7 +84,6 @@ namespace Content.Client.Entry
             _componentFactory.IgnoreMissingComponents();
 
             // Do not add to these, they are legacy.
-            _componentFactory.RegisterClass<SharedSpawnPointComponent>();
             _componentFactory.RegisterClass<SharedGravityGeneratorComponent>();
             _componentFactory.RegisterClass<SharedAMEControllerComponent>();
             // Do not add to the above, they are legacy
index 53e69d921f0faf57789a0deae2fb202c47677273..f520f06f4f3966fdeb0d2c11b81f71f4123e6a51 100644 (file)
@@ -1,31 +1,28 @@
-using Content.Shared.Markers;
 using Content.Shared.Roles;
 using Robust.Shared.Prototypes;
 
-namespace Content.Server.Spawners.Components
+namespace Content.Server.Spawners.Components;
+
+[RegisterComponent]
+public sealed class SpawnPointComponent : Component
 {
-    [RegisterComponent]
-    [ComponentReference(typeof(SharedSpawnPointComponent))]
-    public sealed class SpawnPointComponent : SharedSpawnPointComponent
-    {
-        [Dependency] private readonly IPrototypeManager _prototypeManager = default!;
+    [Dependency] private readonly IPrototypeManager _prototypeManager = default!;
 
-        [ViewVariables(VVAccess.ReadWrite)]
-        [DataField("job_id")]
-        private string? _jobId;
+    [ViewVariables(VVAccess.ReadWrite)]
+    [DataField("job_id")]
+    private string? _jobId;
 
-        [ViewVariables(VVAccess.ReadWrite)]
-        [DataField("spawn_type")]
-        public SpawnPointType SpawnType { get; } = SpawnPointType.Unset;
+    [ViewVariables(VVAccess.ReadWrite)]
+    [DataField("spawn_type")]
+    public SpawnPointType SpawnType { get; } = SpawnPointType.Unset;
 
-        public JobPrototype? Job => string.IsNullOrEmpty(_jobId) ? null : _prototypeManager.Index<JobPrototype>(_jobId);
-    }
+    public JobPrototype? Job => string.IsNullOrEmpty(_jobId) ? null : _prototypeManager.Index<JobPrototype>(_jobId);
+}
 
-    public enum SpawnPointType
-    {
-        Unset = 0,
-        LateJoin,
-        Job,
-        Observer,
-    }
+public enum SpawnPointType
+{
+    Unset = 0,
+    LateJoin,
+    Job,
+    Observer,
 }
diff --git a/Content.Shared/Markers/SharedSpawnPointComponent.cs b/Content.Shared/Markers/SharedSpawnPointComponent.cs
deleted file mode 100644 (file)
index 845bee9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Content.Shared.Markers
-{
-    [Virtual]
-    public class SharedSpawnPointComponent : Component
-    {
-    }
-}