Refactor serialization copying to use source generators (#19412)

This commit is contained in:
DrSmugleaf
2023-08-22 18:14:33 -07:00
committed by GitHub
parent 08b43990ab
commit a88e747a0b
1737 changed files with 2532 additions and 2521 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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
{
}
}