RotatingLightComponent.cs 607 B

123456789101112131415161718192021
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Light.Components;
  3. /// <summary>
  4. /// Animates a point light's rotation while enabled.
  5. /// All animation is done in the client system.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
  8. [Access(typeof(SharedRotatingLightSystem))]
  9. public sealed partial class RotatingLightComponent : Component
  10. {
  11. /// <summary>
  12. /// Speed to rotate at, in degrees per second
  13. /// </summary>
  14. [DataField("speed")]
  15. public float Speed = 90f;
  16. [ViewVariables, AutoNetworkedField]
  17. public bool Enabled = true;
  18. }