40 lines
1.1 KiB
C#
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;
|
|
}
|