SlimPoweredLightComponent.cs 621 B

1234567891011121314151617
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Light.Components;
  3. // All content light code is terrible and everything is baked-in. Power code got predicted before light code did.
  4. /// <summary>
  5. /// Handles turning a pointlight on / off based on power. Nothing else
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  8. public sealed partial class SlimPoweredLightComponent : Component
  9. {
  10. /// <summary>
  11. /// Used to make this as being lit. If unpowered then the light will still be off.
  12. /// </summary>
  13. [DataField, AutoNetworkedField]
  14. public bool Enabled = true;
  15. }