1
0

GravityGeneratorComponent.cs 726 B

1234567891011121314151617181920
  1. using Content.Shared.Gravity;
  2. using Content.Shared.Construction.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Gravity
  5. {
  6. [RegisterComponent]
  7. [Access(typeof(GravityGeneratorSystem))]
  8. public sealed partial class GravityGeneratorComponent : SharedGravityGeneratorComponent
  9. {
  10. [DataField("lightRadiusMin")] public float LightRadiusMin { get; set; }
  11. [DataField("lightRadiusMax")] public float LightRadiusMax { get; set; }
  12. /// <summary>
  13. /// Is the gravity generator currently "producing" gravity?
  14. /// </summary>
  15. [ViewVariables]
  16. public bool GravityActive { get; set; } = false;
  17. }
  18. }