ContainmentFieldComponent.cs 911 B

123456789101112131415161718192021222324252627
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Singularity.Components;
  3. [RegisterComponent, NetworkedComponent]
  4. public sealed partial class ContainmentFieldComponent : Component
  5. {
  6. /// <summary>
  7. /// The throw force for the field if an entity collides with it
  8. /// The lighter the mass the further it will throw. 5 mass will go about 4 tiles out, 70 mass goes only a couple tiles.
  9. /// </summary>
  10. [DataField("throwForce")]
  11. public float ThrowForce = 100f;
  12. /// <summary>
  13. /// This shouldn't be at 99999 or higher to prevent the singulo glitching out
  14. /// Will throw anything at the supplied mass or less that collides with the field.
  15. /// </summary>
  16. [DataField("maxMass")]
  17. public float MaxMass = 10000f;
  18. /// <summary>
  19. /// Should field vaporize garbage that collides with it?
  20. /// </summary>
  21. [DataField]
  22. public bool DestroyGarbage = true;
  23. }