2021-03-13 14:46:22 +11:00
|
|
|
#nullable enable
|
2021-04-09 16:46:45 +02:00
|
|
|
using Content.Shared.GameObjects.EntitySystems;
|
2019-04-15 21:11:38 -06:00
|
|
|
using Robust.Shared.GameObjects;
|
2019-04-04 15:09:06 +02:00
|
|
|
|
2021-03-13 14:46:22 +11:00
|
|
|
namespace Content.Shared.GameObjects.Components
|
2019-04-04 15:09:06 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-09-19 11:43:46 -07:00
|
|
|
/// Simple component that automatically hides the sibling
|
|
|
|
|
/// <see cref="ISpriteComponent" /> when the tile it's on is not a sub floor
|
|
|
|
|
/// (plating).
|
2019-04-04 15:09:06 +02:00
|
|
|
/// </summary>
|
2019-09-19 11:43:46 -07:00
|
|
|
/// <seealso cref="P:Content.Shared.Maps.ContentTileDefinition.IsSubFloor" />
|
2019-07-31 15:02:36 +02:00
|
|
|
[RegisterComponent]
|
2019-04-04 15:09:06 +02:00
|
|
|
public sealed class SubFloorHideComponent : Component
|
|
|
|
|
{
|
2019-09-19 11:43:46 -07:00
|
|
|
/// <inheritdoc />
|
2019-04-04 15:09:06 +02:00
|
|
|
public override string Name => "SubFloorHide";
|
2020-02-19 14:39:00 -08:00
|
|
|
}
|
2019-04-04 15:09:06 +02:00
|
|
|
}
|