Files
tbd-station-14/Content.Shared/Clock/ClockComponent.cs
Nemanja 49096cf14f Watches (#29550)
* watches

* rename

* add it into loot pools
2024-07-13 16:09:19 +10:00

43 lines
926 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Clock;
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedClockSystem))]
[AutoGenerateComponentState]
public sealed partial class ClockComponent : Component
{
/// <summary>
/// If not null, this time will be permanently shown.
/// </summary>
[DataField, AutoNetworkedField]
public TimeSpan? StuckTime;
/// <summary>
/// The format in which time is displayed.
/// </summary>
[DataField, AutoNetworkedField]
public ClockType ClockType = ClockType.TwelveHour;
[DataField]
public string HoursBase = "hours_";
[DataField]
public string MinutesBase = "minutes_";
}
[Serializable, NetSerializable]
public enum ClockType : byte
{
TwelveHour,
TwentyFourHour
}
[Serializable, NetSerializable]
public enum ClockVisualLayers : byte
{
HourHand,
MinuteHand
}