1
0

IsRoofComponent.cs 673 B

12345678910111213141516171819202122
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Light.Components;
  3. /// <summary>
  4. /// Counts the tile this entity on as being rooved.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class IsRoofComponent : Component
  8. {
  9. [DataField, AutoNetworkedField]
  10. public bool Enabled = true;
  11. /// <summary>
  12. /// Color for this roof. If null then falls back to the grid's color.
  13. /// </summary>
  14. /// <remarks>
  15. /// If a tile is marked as rooved then the tile color will be used over any entity's colors on the tile.
  16. /// </remarks>
  17. [DataField, AutoNetworkedField]
  18. public Color? Color;
  19. }