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:
29
Content.Shared/Silicons/Laws/SiliconLawEditEuiState.cs
Normal file
29
Content.Shared/Silicons/Laws/SiliconLawEditEuiState.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user