UI to edit silicon laws from admin verb (#28483)

* UI to edit silicon laws from admin verb

(peak shitcode)

* Improve UI

* Use Moderator admin flag

* Reviews
This commit is contained in:
Simon
2024-08-09 08:16:22 +02:00
committed by GitHub
parent 8d96c993a2
commit 4c4cdb5b06
11 changed files with 395 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
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;
}
}