1
0

ThrowingAngleComponent.cs 610 B

12345678910111213141516171819
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Throwing;
  3. /// <summary>
  4. /// When thrown applies a specific angle to the thrown entity.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class ThrowingAngleComponent : Component
  8. {
  9. /// <summary>
  10. /// Do we apply throwing spin to the entity.
  11. /// </summary>
  12. [ViewVariables(VVAccess.ReadWrite), DataField("angularVelocity"), AutoNetworkedField]
  13. public bool AngularVelocity;
  14. [ViewVariables(VVAccess.ReadWrite), DataField("angle"), AutoNetworkedField]
  15. public Angle Angle;
  16. }