2023-04-03 13:13:48 +12:00
|
|
|
using Content.Shared.DoAfter;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Forensics;
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ForensicScannerDoAfterEvent : SimpleDoAfterEvent
|
2023-04-03 13:13:48 +12:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ForensicPadDoAfterEvent : DoAfterEvent
|
2023-04-03 13:13:48 +12:00
|
|
|
{
|
2023-08-22 18:14:33 -07:00
|
|
|
[DataField("sample", required: true)] public string Sample = default!;
|
2023-04-03 13:13:48 +12:00
|
|
|
|
|
|
|
|
private ForensicPadDoAfterEvent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ForensicPadDoAfterEvent(string sample)
|
|
|
|
|
{
|
|
|
|
|
Sample = sample;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override DoAfterEvent Clone() => this;
|
|
|
|
|
}
|
2023-12-15 04:52:55 -05:00
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed partial class CleanForensicsDoAfterEvent : SimpleDoAfterEvent
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An event to apply DNA evidence from a donor onto some recipient.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public record struct TransferDnaEvent()
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity donating the DNA.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EntityUid Donor;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity receiving the DNA.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EntityUid Recipient;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Can the DNA be cleaned off?
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool CanDnaBeCleaned = true;
|
|
|
|
|
}
|
2024-08-09 01:27:27 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An event to generate and act upon new DNA for an entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public record struct GenerateDnaEvent()
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity getting new DNA.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EntityUid Owner;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The generated DNA.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DNA;
|
|
|
|
|
}
|