2023-07-16 04:59:46 +02:00
|
|
|
using Content.Shared.Radio;
|
2023-08-05 17:06:40 -04:00
|
|
|
using Robust.Shared.GameStates;
|
2023-07-16 04:59:46 +02:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Implants.Components;
|
|
|
|
|
|
2023-08-05 17:06:40 -04:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-07-16 04:59:46 +02:00
|
|
|
public sealed class RattleComponent : Component
|
|
|
|
|
{
|
|
|
|
|
// The radio channel the message will be sent to
|
|
|
|
|
[DataField("radioChannel", customTypeSerializer: typeof(PrototypeIdSerializer<RadioChannelPrototype>))]
|
|
|
|
|
public string RadioChannel = "Syndicate";
|
|
|
|
|
|
|
|
|
|
// The message that the implant will send when crit
|
|
|
|
|
[DataField("critMessage")]
|
|
|
|
|
public string CritMessage = "deathrattle-implant-critical-message";
|
|
|
|
|
|
|
|
|
|
// The message that the implant will send when dead
|
|
|
|
|
[DataField("deathMessage")]
|
|
|
|
|
public string DeathMessage = "deathrattle-implant-dead-message";
|
|
|
|
|
}
|