Files
OldThink/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs
Alex Evgrashin 2d34ded94d Artifact container (#7822)
Co-authored-by: Kara <lunarautomaton6@gmail.com>
2022-04-28 15:03:39 -07:00

40 lines
1.1 KiB
C#

namespace Content.Server.Xenoarchaeology.XenoArtifacts;
[RegisterComponent]
public sealed class ArtifactComponent : Component
{
/// <summary>
/// Should artifact pick a random trigger on startup?
/// </summary>
[DataField("randomTrigger")]
public bool RandomTrigger = true;
/// <summary>
/// List of all possible triggers activations.
/// Should be same as components names.
/// </summary>
[DataField("possibleTriggers")]
public string[] PossibleTriggers = {
"ArtifactInteractionTrigger",
"ArtifactGasTrigger",
"ArtifactHeatTrigger",
"ArtifactElectricityTrigger",
};
/// <summary>
/// Cooldown time between artifact activations (in seconds).
/// </summary>
[DataField("timer")]
[ViewVariables(VVAccess.ReadWrite)]
public double CooldownTime = 10;
/// <summary>
/// Is this artifact under some suppression device?
/// If true, will ignore all trigger activations attempts.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public bool IsSuppressed;
public TimeSpan LastActivationTime;
}