Add SaveLoadSavePrototype test (#18859)
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Content.Server.UserInterface
|
||||
[DataField("adminOnly")]
|
||||
public bool AdminOnly { get; set; } = false;
|
||||
|
||||
[DataField("key", readOnly: true, required: true)]
|
||||
[DataField("key", required: true)]
|
||||
private string _keyRaw = default!;
|
||||
|
||||
[DataField("verbText")]
|
||||
|
||||
@@ -27,12 +27,12 @@ public sealed class IntrinsicUIComponent : Component, ISerializationHooks
|
||||
[DataDefinition]
|
||||
public struct IntrinsicUIEntry
|
||||
{
|
||||
[ViewVariables] public Enum? Key { get; set; } = null;
|
||||
[ViewVariables] public Enum? Key { get; private set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// The BUI key that this intrinsic UI should open.
|
||||
/// </summary>
|
||||
[DataField("key", readOnly: true, required: true)]
|
||||
[DataField("key", required: true)]
|
||||
private string _keyRaw = default!;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace Content.Server.UserInterface;
|
||||
public sealed class OpenUiActionEvent : InstantActionEvent, ISerializationHooks
|
||||
{
|
||||
[ViewVariables]
|
||||
public Enum? Key { get; set; }
|
||||
public Enum? Key { get; private set; }
|
||||
|
||||
[DataField("key", readOnly: true, required: true)]
|
||||
[DataField("key", required: true)]
|
||||
private string _keyRaw = default!;
|
||||
|
||||
void ISerializationHooks.AfterDeserialization()
|
||||
|
||||
Reference in New Issue
Block a user