2022-12-15 14:39:34 -04:00
|
|
|
namespace Content.Client.Rotation;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed class RotationVisualsComponent : Component
|
|
|
|
|
{
|
2023-05-11 07:20:41 -04:00
|
|
|
[DataField("defaultRotation")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
|
|
|
public readonly Angle DefaultRotation = Angle.FromDegrees(90);
|
2023-01-24 07:50:35 +11:00
|
|
|
|
2022-12-15 14:39:34 -04:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public Angle VerticalRotation = 0;
|
|
|
|
|
|
2023-05-11 07:20:41 -04:00
|
|
|
[DataField("horizontalRotation")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public Angle HorizontalRotation = Angle.FromDegrees(90);
|
2022-12-15 14:39:34 -04:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float AnimationTime = 0.125f;
|
|
|
|
|
}
|