Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Content.Shared.DeviceNetwork.Components;
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
[Access(typeof(SharedDeviceListSystem))]
|
||||
public sealed class DeviceListComponent : Component
|
||||
public sealed partial class DeviceListComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The list of devices can or can't connect to, depending on the <see cref="IsAllowList"/> field.
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Shared.DeviceNetwork.Components;
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
[Access(typeof(SharedNetworkConfiguratorSystem))]
|
||||
public sealed class NetworkConfiguratorComponent : Component
|
||||
public sealed partial class NetworkConfiguratorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines whether the configurator is in linking mode or list mode
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Shared.DeviceNetwork;
|
||||
public sealed class DeviceFrequencyPrototype : IPrototype
|
||||
{
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
public string ID { get; private set; } = default!;
|
||||
|
||||
// TODO Somehow Allow per-station or some other type of named but randomized frequencies?
|
||||
[DataField("frequency", required: true)]
|
||||
|
||||
@@ -34,7 +34,7 @@ public abstract class SharedNetworkConfiguratorSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ClearAllOverlaysEvent : InstantActionEvent
|
||||
public sealed partial class ClearAllOverlaysEvent : InstantActionEvent
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user