]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Properly document AtmosDeviceEnabled(Disabled)Event (#41613)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Sat, 29 Nov 2025 00:42:13 +0000 (16:42 -0800)
committerGitHub <noreply@github.com>
Sat, 29 Nov 2025 00:42:13 +0000 (00:42 +0000)
kill misnomers

Content.Shared/Atmos/Piping/Components/AtmosDeviceDisabledEvent.cs
Content.Shared/Atmos/Piping/Components/AtmosDeviceEnabledEvent.cs

index 6fe5d86df2b92b53cdb6c29c2812bce223a036d2..66aa9b0bfac4815ed4ce5e87799735e8a4872752 100644 (file)
@@ -1,7 +1,12 @@
 namespace Content.Shared.Atmos.Piping.Components;
 
 /// <summary>
-///     Raised directed on an atmos device when it is enabled.
+/// <para>Raised directed on an AtmosDeviceComponent when it has been removed from
+/// the GridAtmosphereComponent it was attached to.
+/// This can occur when it has been requested manually or when the device has been unanchored.</para>
+///
+/// <para>Any information that you were tracking about the grid should
+/// probably be cleared out here.</para>
 /// </summary>
 [ByRefEvent]
-public readonly record struct AtmosDeviceDisabledEvent;
\ No newline at end of file
+public readonly record struct AtmosDeviceDisabledEvent;
index d656367245ee8a2349c300399d256f2c08497101..5f829c7d5971909a23c6222a97cafdd6956e5da2 100644 (file)
@@ -1,7 +1,13 @@
 namespace Content.Shared.Atmos.Piping.Components;
 
 /// <summary>
-///     Raised directed on an atmos device when it is enabled.
+/// <para>Raised directed on an AtmosDeviceComponent when it has been added to
+/// a GridAtmosphereComponent.
+/// This can occur when it has been requested manually or when the device has been anchored.</para>
+///
+/// <para>You can use this to cache specific information about the grid the device is on,
+/// though be careful with caching references to objects that can be removed or changed at any time
+/// (such as <see cref="GasMixture"/>s).</para>
 /// </summary>
 [ByRefEvent]
-public readonly record struct AtmosDeviceEnabledEvent;
\ No newline at end of file
+public readonly record struct AtmosDeviceEnabledEvent;