Files
crystall-punk-14/Content.Shared/Movement/Components/FloorOcclusionComponent.cs

17 lines
511 B
C#
Raw Permalink Normal View History

2023-08-30 12:32:35 +10:00
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
{
2024-05-26 06:23:34 +10:00
[ViewVariables]
public bool Enabled => Colliding.Count > 0;
2023-08-30 12:32:35 +10:00
2024-05-26 06:23:34 +10:00
[DataField, AutoNetworkedField]
2023-08-30 12:32:35 +10:00
public List<EntityUid> Colliding = new();
}