Syndicate and CentComm Radio Implanters (#33533)
* Add Syndicate Radio Implant * Fix description grammar * remove unused var * Update - Small fixes * Un mess with imports * Remove unused tag * Correction * Clear lists instead of remove * Update 0 check * Add Centcomm implant * Correct centcom channel * Correct params * No more crying * Update Content.Shared/Implants/Components/RadioImplantComponent.cs * Update Content.Server/Implants/RadioImplantSystem.cs * Update Content.Server/Implants/RadioImplantSystem.cs --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
37
Content.Shared/Implants/Components/RadioImplantComponent.cs
Normal file
37
Content.Shared/Implants/Components/RadioImplantComponent.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Content.Shared.Radio;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Implants.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Gives the user access to a given channel without the need for a headset.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class RadioImplantComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The radio channel(s) to grant access to.
|
||||
/// </summary>
|
||||
[DataField(required: true)]
|
||||
public HashSet<ProtoId<RadioChannelPrototype>> RadioChannels = new();
|
||||
|
||||
/// <summary>
|
||||
/// The radio channels that have been added by the implant to a user's ActiveRadioComponent.
|
||||
/// Used to track which channels were successfully added (not already in user)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Should not be modified outside RadioImplantSystem.cs
|
||||
/// </remarks>
|
||||
[DataField]
|
||||
public HashSet<ProtoId<RadioChannelPrototype>> ActiveAddedChannels = new();
|
||||
|
||||
/// <summary>
|
||||
/// The radio channels that have been added by the implant to a user's IntrinsicRadioTransmitterComponent.
|
||||
/// Used to track which channels were successfully added (not already in user)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Should not be modified outside RadioImplantSystem.cs
|
||||
/// </remarks>
|
||||
[DataField]
|
||||
public HashSet<ProtoId<RadioChannelPrototype>> TransmitterAddedChannels = new();
|
||||
}
|
||||
Reference in New Issue
Block a user