Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -4,13 +4,13 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Shared.Wires;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class WireDoAfterEvent : DoAfterEvent
|
||||
public sealed partial class WireDoAfterEvent : DoAfterEvent
|
||||
{
|
||||
[DataField("action", required: true)]
|
||||
public readonly WiresAction Action;
|
||||
public WiresAction Action;
|
||||
|
||||
[DataField("id", required: true)]
|
||||
public readonly int Id;
|
||||
public int Id;
|
||||
|
||||
private WireDoAfterEvent()
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Shared.Wires
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class WirePanelDoAfterEvent : SimpleDoAfterEvent
|
||||
public sealed partial class WirePanelDoAfterEvent : SimpleDoAfterEvent
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Wires;
|
||||
public sealed class WiresPanelSecurityLevelPrototype : IPrototype
|
||||
{
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
public string ID { get; private set; } = default!;
|
||||
|
||||
[DataField("examine")]
|
||||
public string? Examine = default!;
|
||||
|
||||
Reference in New Issue
Block a user