RoofComponent.cs 599 B

123456789101112131415161718192021
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Light.Components;
  3. /// <summary>
  4. /// Will draw shadows over tiles flagged as roof tiles on the attached grid.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class RoofComponent : Component
  8. {
  9. public const int ChunkSize = 8;
  10. [DataField, AutoNetworkedField]
  11. public Color Color = Color.Black;
  12. /// <summary>
  13. /// Chunk origin and bitmask of value in chunk.
  14. /// </summary>
  15. [DataField, AutoNetworkedField]
  16. public Dictionary<Vector2i, ulong> Data = new();
  17. }