Files
tbd-station-14/Content.Shared/Implants/Components/SubdermalImplantComponent.cs
deltanedas 2eaec2d528 Add uplink implant (#15728)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-04-29 19:07:50 +10:00

62 lines
1.5 KiB
C#

using Content.Shared.Actions;
namespace Content.Shared.Implants.Components;
/// <summary>
/// Subdermal implants get stored in a container on an entity and grant the entity special actions
/// The actions can be activated via an action, a passive ability (ie tracking), or a reactive ability (ie on death) or some sort of combination
/// They're added and removed with implanters
/// </summary>
[RegisterComponent]
public sealed class SubdermalImplantComponent : Component
{
/// <summary>
/// Used where you want the implant to grant the owner an instant action.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("implantAction")]
public string? ImplantAction;
/// <summary>
/// The entity this implant is inside
/// </summary>
[ViewVariables]
public EntityUid? ImplantedEntity;
/// <summary>
/// Should this implant be removeable?
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("permanent")]
public bool Permanent = false;
}
/// <summary>
/// Used for opening the storage implant via action.
/// </summary>
public sealed class OpenStorageImplantEvent : InstantActionEvent
{
}
public sealed class UseFreedomImplantEvent : InstantActionEvent
{
}
/// <summary>
/// Used for triggering trigger events on the implant via action
/// </summary>
public sealed class ActivateImplantEvent : InstantActionEvent
{
}
/// <summary>
/// Used for opening the uplink implant via action.
/// </summary>
public sealed class OpenUplinkImplantEvent : InstantActionEvent
{
}