* UI to edit silicon laws from admin verb (peak shitcode) * Improve UI * Use Moderator admin flag * Reviews
30 lines
716 B
C#
30 lines
716 B
C#
using Content.Shared.Eui;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Silicons.Laws;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class SiliconLawsEuiState : EuiStateBase
|
|
{
|
|
public List<SiliconLaw> Laws { get; }
|
|
public NetEntity Target { get; }
|
|
public SiliconLawsEuiState(List<SiliconLaw> laws, NetEntity target)
|
|
{
|
|
Laws = laws;
|
|
Target = target;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class SiliconLawsSaveMessage : EuiMessageBase
|
|
{
|
|
public List<SiliconLaw> Laws { get; }
|
|
public NetEntity Target { get; }
|
|
|
|
public SiliconLawsSaveMessage(List<SiliconLaw> laws, NetEntity target)
|
|
{
|
|
Laws = laws;
|
|
Target = target;
|
|
}
|
|
}
|