Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -3,7 +3,7 @@ using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Disposal.Components
|
||||
{
|
||||
public sealed class SharedDisposalRouterComponent : Component
|
||||
public sealed partial class SharedDisposalRouterComponent : Component
|
||||
{
|
||||
public static readonly Regex TagRegex = new("^[a-zA-Z0-9, ]*$", RegexOptions.Compiled);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Disposal.Components
|
||||
{
|
||||
public sealed class SharedDisposalTaggerComponent : Component
|
||||
public sealed partial class SharedDisposalTaggerComponent : Component
|
||||
{
|
||||
public static readonly Regex TagRegex = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
namespace Content.Shared.Disposal.Components;
|
||||
|
||||
[NetworkedComponent]
|
||||
public abstract class SharedDisposalUnitComponent : Component
|
||||
public abstract partial class SharedDisposalUnitComponent : Component
|
||||
{
|
||||
public const string ContainerId = "disposals";
|
||||
|
||||
@@ -28,7 +28,7 @@ public abstract class SharedDisposalUnitComponent : Component
|
||||
/// We'll track whatever just left disposals so we know what collision we need to ignore until they stop intersecting our BB.
|
||||
/// </summary>
|
||||
[ViewVariables, DataField("recentlyEjected")]
|
||||
public readonly List<EntityUid> RecentlyEjected = new();
|
||||
public List<EntityUid> RecentlyEjected = new();
|
||||
|
||||
/// <summary>
|
||||
/// Next time the disposal unit will be pressurized.
|
||||
|
||||
@@ -18,7 +18,7 @@ using Robust.Shared.Timing;
|
||||
namespace Content.Shared.Disposal;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class DisposalDoAfterEvent : SimpleDoAfterEvent
|
||||
public sealed partial class DisposalDoAfterEvent : SimpleDoAfterEvent
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user