Files
Delta-v/Content.Shared/Light/Components/RoofComponent.cs
T
mtrs163 cc39174401 Don't add ImplicitRoof to grids with roof component (#38551)
* Don't add implicitroof to grids with roof component

* changes 1
2025-12-29 11:39:25 -06:00

22 lines
670 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Light.Components;
/// <summary>
/// Will draw shadows over tiles flagged as roof tiles on the attached grid. ImplicitRoofComponent will get removed if the grid has this component.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class RoofComponent : Component
{
public const int ChunkSize = 8;
[DataField, AutoNetworkedField]
public Color Color = Color.Black;
/// <summary>
/// Chunk origin and bitmask of value in chunk.
/// </summary>
[DataField, AutoNetworkedField]
public Dictionary<Vector2i, ulong> Data = new();
}