* Add more DNA interactions * remove unused import * update based on feedback * Add event for chemistrysystem.injector * move event to shared; transfer dna to implanter * doafter and interaction event fixes * add BreakOnHandChange * doh * use events instead of updating component directly * Add DataFields to ForensicScannerComponent fields * Convert most events to system api call
54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
using Content.Shared.DoAfter;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Forensics;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed partial class ForensicScannerDoAfterEvent : SimpleDoAfterEvent
|
|
{
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed partial class ForensicPadDoAfterEvent : DoAfterEvent
|
|
{
|
|
[DataField("sample", required: true)] public string Sample = default!;
|
|
|
|
private ForensicPadDoAfterEvent()
|
|
{
|
|
}
|
|
|
|
public ForensicPadDoAfterEvent(string sample)
|
|
{
|
|
Sample = sample;
|
|
}
|
|
|
|
public override DoAfterEvent Clone() => this;
|
|
}
|
|
|
|
[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;
|
|
}
|