Files
tbd-station-14/Content.Shared/Trigger/Components/Effects/PolymorphOnTriggerComponent.cs
2025-08-03 21:20:37 +02:00

20 lines
584 B
C#

using Content.Shared.Polymorph;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Polymorphs the enity when triggered.
/// If TargetUser is true it will polymorph the user instead.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class PolymorphOnTriggerComponent : BaseXOnTriggerComponent
{
/// <summary>
/// Polymorph settings.
/// </summary>
[DataField(required: true)]
public ProtoId<PolymorphPrototype> Polymorph;
}