Вдвойне сломали панель накрутки

This commit is contained in:
Hero010h
2025-01-04 23:04:38 +03:00
parent e178961cd2
commit d51cab46ab
6 changed files with 58 additions and 50 deletions

View File

@@ -1,17 +0,0 @@
using Robust.Shared.Serialization;
namespace Content.Shared._White.Administration;
[Serializable, NetSerializable]
public sealed class HoursPanelMessage : EntityEventArgs
{
public string PlayerCKey { get; }
public string Job { get; }
public TimeSpan? Time { get; }
public HoursPanelMessage(string playerCKey, string job, TimeSpan? time = null)
{
PlayerCKey = playerCKey;
Job = job;
Time = time;
}
}

View File

@@ -0,0 +1,24 @@
using Robust.Shared.Serialization;
namespace Content.Shared._White.Administration;
[Serializable, NetSerializable]
public sealed class HoursPanelMessageToServer : EntityEventArgs
{
public string PlayerCKey { get; }
public string Job { get; }
public HoursPanelMessageToServer(string playerCKey, string job)
{
PlayerCKey = playerCKey;
Job = job;
}
}
public sealed class HoursPanelMessageToClient : EntityEventArgs
{
public TimeSpan Time { get; }
public HoursPanelMessageToClient(TimeSpan time)
{
Time = time;
}
}

View File

@@ -1,18 +0,0 @@
using Robust.Shared.Network;
using Robust.Shared.Serialization;
namespace Content.Shared._White.Administration;
public abstract class SharedHoursPanelSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeNetworkEvent<HoursPanelMessage>(OnHoursPanelMessage);
}
protected virtual void OnHoursPanelMessage(HoursPanelMessage message, EntitySessionEventArgs eventArgs)
{
}
}