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

@@ -6,7 +6,7 @@ namespace Content.Shared.Interaction.Components;
/// This is used for entities which cannot move or interact in any way.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class BlockMovementComponent : Component
public sealed partial class BlockMovementComponent : Component
{
}

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Interaction.Components
/// A simple clumsy tag-component.
/// </summary>
[RegisterComponent]
public sealed class ClumsyComponent : Component
public sealed partial class ClumsyComponent : Component
{
[DataField("clumsyDamage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Interaction.Components;
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedInteractionSystem))]
public sealed class InteractionRelayComponent : Component
public sealed partial class InteractionRelayComponent : Component
{
/// <summary>
/// The entity the interactions are being relayed to.

View File

@@ -5,7 +5,7 @@ namespace Content.Shared.Interaction.Components
{
[RegisterComponent]
[NetworkedComponent]
public sealed class UnremoveableComponent : Component
public sealed partial class UnremoveableComponent : Component
{
/// <summary>
/// If this is true then unremovable items that are removed from inventory are deleted (typically from corpse gibbing).