1
0

TriggerOnCollideComponent.cs 548 B

1234567891011121314151617181920
  1. namespace Content.Server.Explosion.Components;
  2. /// <summary>
  3. /// Triggers when colliding with another entity.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class TriggerOnCollideComponent : Component
  7. {
  8. /// <summary>
  9. /// The fixture with which to collide.
  10. /// </summary>
  11. [DataField(required: true)]
  12. public string FixtureID = string.Empty;
  13. /// <summary>
  14. /// Doesn't trigger if the other colliding fixture is nonhard.
  15. /// </summary>
  16. [DataField]
  17. public bool IgnoreOtherNonHard = true;
  18. }