2022-01-22 15:55:11 +03:00
|
|
|
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-02-19 22:16:49 +03:00
|
|
|
/// Activate artifact by touching, attacking or pulling it.
|
2022-01-22 15:55:11 +03:00
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ArtifactInteractionTriggerComponent : Component
|
2022-01-22 15:55:11 +03:00
|
|
|
{
|
2022-02-19 22:16:49 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Should artifact be activated just by touching with empty hand?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("emptyHandActivation")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool EmptyHandActivation = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should artifact be activated by melee attacking?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("attackActivation")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool AttackActivation = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should artifact be activated by starting pulling it?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("pullActivation")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool PullActivation = true;
|
2022-01-22 15:55:11 +03:00
|
|
|
}
|