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

@@ -18,7 +18,7 @@ namespace Content.Shared.Payload.Components;
/// network message), the trigger will be forwarded to the device that this entity is installed in (if any).
/// </remarks>
[RegisterComponent, NetworkedComponent]
public sealed class PayloadTriggerComponent : Component
public sealed partial class PayloadTriggerComponent : Component
{
/// <summary>
/// If true, triggering this entity will also cause the parent of this entity to be triggered.
@@ -29,7 +29,7 @@ public sealed class PayloadTriggerComponent : Component
/// List of components to add or remove from an entity when this trigger is (un)installed.
/// </summary>
[DataField("components", serverOnly:true, readOnly: true)]
public readonly ComponentRegistry? Components = null;
public ComponentRegistry? Components = null;
/// <summary>
/// Keeps track of what components this trigger has granted to the payload case.
@@ -41,5 +41,5 @@ public sealed class PayloadTriggerComponent : Component
/// responsible for adding.
/// </remarks>
[DataField("grantedComponents", serverOnly: true)]
public readonly HashSet<Type> GrantedComponents = new();
public HashSet<Type> GrantedComponents = new();
}