Files
OldThink/Content.Server/Polymorph/Components/PolymorphableComponent.cs

29 lines
885 B
C#
Raw Normal View History

using Content.Server.Polymorph.Systems;
2022-05-18 00:05:22 -04:00
using Content.Shared.Polymorph;
using Robust.Shared.Prototypes;
2022-05-18 00:05:22 -04:00
namespace Content.Server.Polymorph.Components;
[RegisterComponent]
[Access(typeof(PolymorphSystem))]
public sealed partial class PolymorphableComponent : Component
2022-05-18 00:05:22 -04:00
{
/// <summary>
/// A list of all the polymorphs that the entity has.
/// Used to manage them and remove them if needed.
/// </summary>
public Dictionary<ProtoId<PolymorphPrototype>, EntityUid>? PolymorphActions = null;
2022-05-18 00:05:22 -04:00
/// <summary>
/// Timestamp for when the most recent polymorph ended.
/// </summary>
[ViewVariables(VVAccess.ReadOnly)]
public TimeSpan? LastPolymorphEnd = null;
2022-05-18 00:05:22 -04:00
/// <summary>
/// The polymorphs that the entity starts out being able to do.
/// </summary>
[DataField]
public List<ProtoId<PolymorphPrototype>>? InnatePolymorphs;
2022-05-18 00:05:22 -04:00
}