ArtifactInteractionTriggerComponent.cs 937 B

1234567891011121314151617181920212223242526272829
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
  2. /// <summary>
  3. /// Activate artifact by touching, attacking or pulling it.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class ArtifactInteractionTriggerComponent : Component
  7. {
  8. /// <summary>
  9. /// Should artifact be activated just by touching with empty hand?
  10. /// </summary>
  11. [DataField("emptyHandActivation")]
  12. [ViewVariables(VVAccess.ReadWrite)]
  13. public bool EmptyHandActivation = true;
  14. /// <summary>
  15. /// Should artifact be activated by melee attacking?
  16. /// </summary>
  17. [DataField("attackActivation")]
  18. [ViewVariables(VVAccess.ReadWrite)]
  19. public bool AttackActivation = true;
  20. /// <summary>
  21. /// Should artifact be activated by starting pulling it?
  22. /// </summary>
  23. [DataField("pullActivation")]
  24. [ViewVariables(VVAccess.ReadWrite)]
  25. public bool PullActivation = true;
  26. }