21 lines
749 B
C#
21 lines
749 B
C#
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Shared.Glue;
|
|
|
|
[RegisterComponent]
|
|
[Access(typeof(SharedGlueSystem))]
|
|
public sealed partial class GluedComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Reverts name to before prefix event (essentially removes prefix).
|
|
/// </summary>
|
|
[DataField("beforeGluedEntityName"), ViewVariables(VVAccess.ReadOnly)]
|
|
public string BeforeGluedEntityName = string.Empty;
|
|
|
|
[DataField("until", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan Until;
|
|
|
|
[DataField("duration", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan Duration;
|
|
}
|