Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Content.Shared.Cuffs.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[Access(typeof(SharedCuffableSystem))]
|
||||
public sealed class CuffableComponent : Component
|
||||
public sealed partial class CuffableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The current RSI for the handcuff layer
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Cuffs.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[Access(typeof(SharedCuffableSystem))]
|
||||
public sealed class HandcuffComponent : Component
|
||||
public sealed partial class HandcuffComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The time it takes to cuff an entity.
|
||||
|
||||
@@ -36,7 +36,7 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Shared.Cuffs
|
||||
{
|
||||
// TODO remove all the IsServer() checks.
|
||||
public abstract class SharedCuffableSystem : EntitySystem
|
||||
public abstract partial class SharedCuffableSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IComponentFactory _componentFactory = default!;
|
||||
[Dependency] private readonly INetManager _net = default!;
|
||||
@@ -705,12 +705,12 @@ namespace Content.Shared.Cuffs
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
private sealed class UnCuffDoAfterEvent : SimpleDoAfterEvent
|
||||
private sealed partial class UnCuffDoAfterEvent : SimpleDoAfterEvent
|
||||
{
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
private sealed class AddCuffDoAfterEvent : SimpleDoAfterEvent
|
||||
private sealed partial class AddCuffDoAfterEvent : SimpleDoAfterEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user