6
StarHorizon_Public/Content.Shared/Light/Components/ItemTogglePointLightComponent.cs
2025-11-15 12:24:44 +03:00

19 lines
654 B
C#

using Content.Shared.Item.ItemToggle.Components;
using Robust.Shared.GameStates;
using Content.Shared.Toggleable;
namespace Content.Shared.Light.Components;
/// <summary>
/// Makes <see cref="ItemToggledEvent"/> enable and disable point lights on this entity.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class ItemTogglePointLightComponent : Component
{
/// <summary>
/// When true, causes the color specified in <see cref="ToggleableVisuals.Color"/>
/// be used to modulate the color of lights on this entity.
/// </summary>
[DataField] public bool ToggleableVisualsColorModulatesLights = false;
}