mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-11 03:11:14 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Species.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class ReformComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The action to use.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntProtoId ActionPrototype = default!;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? ActionEntity;
|
|
|
|
/// <summary>
|
|
/// How long it will take to reform
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public float ReformTime = 0;
|
|
|
|
/// <summary>
|
|
/// Whether or not the entity should start with a cooldown
|
|
/// </summary>
|
|
[DataField]
|
|
public bool StartDelayed = true;
|
|
|
|
/// <summary>
|
|
/// Whether or not the entity should be stunned when reforming at all
|
|
/// </summary>
|
|
[DataField]
|
|
public bool ShouldStun = true;
|
|
|
|
/// <summary>
|
|
/// The text that appears when attempting to reform
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public string PopupText;
|
|
|
|
/// <summary>
|
|
/// The mob that our entity will reform into
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntProtoId ReformPrototype { get; private set; }
|
|
}
|