Files
tbd-station-14/Content.Shared/Movement/Components/FloorOcclusionComponent.cs
2024-05-25 16:23:34 -04: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();
}