2023-06-03 04:31:47 +01:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Glue;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-06-30 22:07:44 +03:00
|
|
|
[Access(typeof(SharedGlueSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GluedComponent : Component
|
2023-06-03 04:31:47 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reverts name to before prefix event (essentially removes prefix).
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("beforeGluedEntityName"), ViewVariables(VVAccess.ReadOnly)]
|
2023-06-30 22:07:44 +03:00
|
|
|
public string BeforeGluedEntityName = string.Empty;
|
2023-06-03 04:31:47 +01:00
|
|
|
|
2023-06-30 22:07:44 +03:00
|
|
|
[DataField("until", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public TimeSpan Until;
|
2023-06-03 04:31:47 +01:00
|
|
|
|
2023-06-30 22:07:44 +03:00
|
|
|
[DataField("duration", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public TimeSpan Duration;
|
2023-06-03 04:31:47 +01:00
|
|
|
}
|