light refactoring/rework (#19314)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
21
Content.Shared/Light/Components/RotatingLightComponent.cs
Normal file
21
Content.Shared/Light/Components/RotatingLightComponent.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Light.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Animates a point light's rotation while enabled.
|
||||
/// All animation is done in the client system.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
||||
[Access(typeof(SharedRotatingLightSystem))]
|
||||
public sealed partial class RotatingLightComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Speed to rotate at, in degrees per second
|
||||
/// </summary>
|
||||
[DataField("speed")]
|
||||
public float Speed = 90f;
|
||||
|
||||
[ViewVariables, AutoNetworkedField]
|
||||
public bool Enabled = true;
|
||||
}
|
||||
Reference in New Issue
Block a user