FloorOcclusionComponent.cs 511 B

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