]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Use IComponentState for compstates (#21905)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 4 Jan 2024 02:50:48 +0000 (13:50 +1100)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 02:50:48 +0000 (13:50 +1100)
Content.Shared/Atmos/Components/GasTileOverlayComponent.cs
Content.Shared/Decals/DecalGridComponent.cs

index b97da1d30cb55058c1b0a32425fa99bff0472451..e72a1d67584145a1f47729af7a9063ddc09efd93 100644 (file)
@@ -39,7 +39,7 @@ public sealed class GasTileOverlayState : ComponentState, IComponentDeltaState
         Chunks = chunks;
     }
 
-    public void ApplyToFullState(ComponentState fullState)
+    public void ApplyToFullState(IComponentState fullState)
     {
         DebugTools.Assert(!FullState);
         var state = (GasTileOverlayState) fullState;
@@ -57,7 +57,7 @@ public sealed class GasTileOverlayState : ComponentState, IComponentDeltaState
         }
     }
 
-    public ComponentState CreateNewFullState(ComponentState fullState)
+    public IComponentState CreateNewFullState(IComponentState fullState)
     {
         DebugTools.Assert(!FullState);
         var state = (GasTileOverlayState) fullState;
index aa366f28c9111dbdfbb5f53cf7916d83c1d42d09..140eb5bafcd5af7d2311b34786cf0c393da18fb0 100644 (file)
@@ -78,7 +78,7 @@ namespace Content.Shared.Decals
             Chunks = chunks;
         }
 
-        public void ApplyToFullState(ComponentState fullState)
+        public void ApplyToFullState(IComponentState fullState)
         {
             DebugTools.Assert(!FullState);
             var state = (DecalGridState) fullState;
@@ -96,7 +96,7 @@ namespace Content.Shared.Decals
             }
         }
 
-        public ComponentState CreateNewFullState(ComponentState fullState)
+        public IComponentState CreateNewFullState(IComponentState fullState)
         {
             DebugTools.Assert(!FullState);
             var state = (DecalGridState) fullState;