mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
72 lines
1.8 KiB
C#
72 lines
1.8 KiB
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.MachineLinking;
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum SignalTimerUiKey : byte
|
|
{
|
|
Key
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a SignalTimerComponent state that can be sent to the client
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class SignalTimerBoundUserInterfaceState : BoundUserInterfaceState
|
|
{
|
|
public string CurrentText;
|
|
public string CurrentDelayMinutes;
|
|
public string CurrentDelaySeconds;
|
|
public bool ShowText;
|
|
public TimeSpan TriggerTime;
|
|
public bool TimerStarted;
|
|
public bool HasAccess;
|
|
public bool CanEditDelay; // WWDP edit
|
|
|
|
public SignalTimerBoundUserInterfaceState(string currentText,
|
|
string currentDelayMinutes,
|
|
string currentDelaySeconds,
|
|
bool showText,
|
|
TimeSpan triggerTime,
|
|
bool timerStarted,
|
|
bool hasAccess,
|
|
bool canEditDelay) // WWDP edit
|
|
{
|
|
CurrentText = currentText;
|
|
CurrentDelayMinutes = currentDelayMinutes;
|
|
CurrentDelaySeconds = currentDelaySeconds;
|
|
ShowText = showText;
|
|
TriggerTime = triggerTime;
|
|
TimerStarted = timerStarted;
|
|
HasAccess = hasAccess;
|
|
CanEditDelay = canEditDelay; // WWDP edit
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class SignalTimerTextChangedMessage : BoundUserInterfaceMessage
|
|
{
|
|
public string Text { get; }
|
|
|
|
public SignalTimerTextChangedMessage(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class SignalTimerDelayChangedMessage : BoundUserInterfaceMessage
|
|
{
|
|
public TimeSpan Delay { get; }
|
|
public SignalTimerDelayChangedMessage(TimeSpan delay)
|
|
{
|
|
Delay = delay;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class SignalTimerStartMessage : BoundUserInterfaceMessage
|
|
{
|
|
|
|
}
|