2022-01-22 15:55:11 +03:00
|
|
|
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Events;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Invokes when artifact was successfully activated.
|
|
|
|
|
/// Used to start attached effects.
|
|
|
|
|
/// </summary>
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ArtifactActivatedEvent : EntityEventArgs
|
2022-01-22 15:55:11 +03:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Entity that activate this artifact.
|
|
|
|
|
/// Usually player, but can also be another object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EntityUid? Activator;
|
|
|
|
|
}
|
2022-11-06 18:05:44 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Force to randomize artifact triggers.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public sealed class ArtifactNodeEnteredEvent : EntityEventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An entity-specific seed that can be used to
|
|
|
|
|
/// generate random values.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly int RandomSeed;
|
|
|
|
|
|
|
|
|
|
public ArtifactNodeEnteredEvent(int randomSeed)
|
|
|
|
|
{
|
|
|
|
|
RandomSeed = randomSeed;
|
|
|
|
|
}
|
|
|
|
|
}
|