ninja 2 electric boogaloo (#15534)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
28
Content.Shared/Communications/SharedCommsHackerSystem.cs
Normal file
28
Content.Shared/Communications/SharedCommsHackerSystem.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Content.Shared.DoAfter;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Communications;
|
||||
|
||||
/// <summary>
|
||||
/// Only exists in shared to provide API and for access.
|
||||
/// All logic is serverside.
|
||||
/// </summary>
|
||||
public abstract class SharedCommsHackerSystem : EntitySystem
|
||||
{
|
||||
/// <summary>
|
||||
/// Set the list of threats to choose from when hacking a comms console.
|
||||
/// </summary>
|
||||
public void SetThreats(EntityUid uid, List<Threat> threats, CommsHackerComponent? comp = null)
|
||||
{
|
||||
if (!Resolve(uid, ref comp))
|
||||
return;
|
||||
|
||||
comp.Threats = threats;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DoAfter event for comms console terror ability.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public sealed partial class TerrorDoAfterEvent : SimpleDoAfterEvent { }
|
||||
Reference in New Issue
Block a user