]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove SpriteChange construction action (#15887)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sat, 29 Apr 2023 08:58:15 +0000 (20:58 +1200)
committerGitHub <noreply@github.com>
Sat, 29 Apr 2023 08:58:15 +0000 (18:58 +1000)
Content.Server/Construction/Completions/SpriteChange.cs [deleted file]
Resources/Prototypes/Recipes/Construction/Graphs/structures/girder.yml
Resources/Prototypes/Recipes/Construction/Graphs/utilities/disposal_machines.yml

diff --git a/Content.Server/Construction/Completions/SpriteChange.cs b/Content.Server/Construction/Completions/SpriteChange.cs
deleted file mode 100644 (file)
index 0592b11..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-using Content.Shared.Construction;
-using JetBrains.Annotations;
-using Robust.Server.GameObjects;
-using Robust.Shared.Utility;
-
-namespace Content.Server.Construction.Completions
-{
-    [UsedImplicitly]
-    [DataDefinition]
-    public sealed class SpriteChange : IGraphAction
-    {
-        [DataField("layer")] public int Layer { get; private set; } = 0;
-        [DataField("specifier")] public SpriteSpecifier? SpriteSpecifier { get; private set; } = SpriteSpecifier.Invalid;
-
-        public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
-        {
-            if (SpriteSpecifier == null || SpriteSpecifier == SpriteSpecifier.Invalid)
-                return;
-
-            if (!entityManager.TryGetComponent(uid, out SpriteComponent? sprite))
-                return;
-
-            // That layer doesn't exist, we do nothing.
-            if (sprite.LayerCount <= Layer)
-                return;
-
-            sprite.LayerSetSprite(Layer, SpriteSpecifier);
-        }
-    }
-}
index 20cf9cf15cc0ea6e4b7640dfde9265fdf2ef846c..e133535a0634a91e6ac41bae1eab8cb75d269b80 100644 (file)
 
     - node: girder
       entity: Girder
-      actions:
-        - !type:SpriteChange
-          specifier:
-            sprite: /Textures/Structures/Walls/solid.rsi
-            state: wall_girder
       edges:
         - to: start
           completed:
index 7a5e0d9c209f305ee431cede2cab9874bcb675bb..c722021e7b66fe65a3e355b30e9681d0c34fdd02 100644 (file)
               doAfter: 1
     - node: frame
       entity: DisposalMachineFrame
-      actions:
-        - !type:SpriteChange
-          specifier:
-            sprite: /Textures/Structures/Piping/high_pressure_machine_frame.rsi
-            state: frame
       edges:
         - to: start
           completed: