Files
wwdpublic/Content.Shared/Movement/Components/FloorOcclusionComponent.cs
metalgearsloth 8d309e8699 Fix water postshader (#28130)
(cherry picked from commit 93f289c7dc94e0aa280b1b8544f8b9ba575d5294)
2026-02-10 15:45:23 +03:00

17 lines
511 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
/// <summary>
/// Applies an occlusion shader to this entity if it's colliding with a <see cref="FloorOccluderComponent"/>
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
public sealed partial class FloorOcclusionComponent : Component
{
[ViewVariables]
public bool Enabled => Colliding.Count > 0;
[DataField, AutoNetworkedField]
public List<EntityUid> Colliding = new();
}