GravityAnomalyComponent.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Anomaly.Effects.Components;
  3. [RegisterComponent, NetworkedComponent, Access(typeof(SharedGravityAnomalySystem))]
  4. public sealed partial class GravityAnomalyComponent : Component
  5. {
  6. /// <summary>
  7. /// The maximumum size the GravityWellComponent MaxRange can be.
  8. /// Is scaled linearly with stability.
  9. /// </summary>
  10. [DataField, ViewVariables(VVAccess.ReadWrite)]
  11. public float MaxGravityWellRange = 10f;
  12. /// <summary>
  13. /// The maximum distance from which the anomaly
  14. /// can throw you via a pulse.
  15. /// </summary>
  16. [DataField, ViewVariables(VVAccess.ReadWrite)]
  17. public float MaxThrowRange = 5f;
  18. /// <summary>
  19. /// The maximum strength the anomaly
  20. /// can throw you via a pulse
  21. /// </summary>
  22. [DataField, ViewVariables(VVAccess.ReadWrite)]
  23. public float MaxThrowStrength = 10;
  24. /// <summary>
  25. /// The maximum Intensity of the RadiationSourceComponent.
  26. /// Is scaled linearly with stability.
  27. /// </summary>
  28. [DataField, ViewVariables(VVAccess.ReadWrite)]
  29. public float MaxRadiationIntensity = 3f;
  30. /// <summary>
  31. /// The minimum acceleration value for GravityWellComponent
  32. /// Is scaled linearly with stability.
  33. /// </summary>
  34. [DataField, ViewVariables(VVAccess.ReadWrite)]
  35. public float MinAccel = 0f;
  36. /// <summary>
  37. /// The maximum acceleration value for GravityWellComponent
  38. /// Is scaled linearly with stability.
  39. /// </summary>
  40. [DataField, ViewVariables(VVAccess.ReadWrite)]
  41. public float MaxAccel = 5f;
  42. /// <summary>
  43. /// The minimum acceleration value for GravityWellComponent
  44. /// Is scaled linearly with stability.
  45. /// </summary>
  46. [DataField, ViewVariables(VVAccess.ReadWrite)]
  47. public float MinRadialAccel = 0f;
  48. /// <summary>
  49. /// The maximum acceleration value for GravityWellComponent
  50. /// Is scaled linearly with stability.
  51. /// </summary>
  52. [DataField, ViewVariables(VVAccess.ReadWrite)]
  53. public float MaxRadialAccel = 5f;
  54. /// <summary>
  55. /// The maximum speed for RandomWalkComponent
  56. /// Is scaled linearly with severity.
  57. /// </summary>
  58. [DataField, ViewVariables(VVAccess.ReadWrite)]
  59. public float MinSpeed = 0.1f;
  60. /// <summary>
  61. /// The maximum speed for RandomWalkComponent
  62. /// Is scaled linearly with severity.
  63. /// </summary>
  64. [DataField, ViewVariables(VVAccess.ReadWrite)]
  65. public float MaxSpeed = 1.0f;
  66. /// <summary>
  67. /// Random +- speed modifier
  68. /// </summary>
  69. [DataField, ViewVariables(VVAccess.ReadWrite)]
  70. public float SpeedVariation = 0.1f;
  71. /// <summary>
  72. /// The range around the anomaly that will be spaced on supercritical.
  73. /// </summary>
  74. [DataField, ViewVariables(VVAccess.ReadWrite)]
  75. public float SpaceRange = 3f;
  76. }