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

@@ -3,7 +3,7 @@ using Robust.Shared.Audio;
namespace Content.Server.Flash.Components
{
[RegisterComponent, Access(typeof(FlashSystem))]
public sealed class FlashComponent : Component
public sealed partial class FlashComponent : Component
{
[DataField("duration")]
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -1,7 +1,7 @@
namespace Content.Server.Flash.Components
{
[RegisterComponent, Access(typeof(FlashSystem))]
public sealed class FlashImmunityComponent : Component
public sealed partial class FlashImmunityComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("enabled")]

View File

@@ -4,7 +4,7 @@ namespace Content.Server.Flash.Components
/// Upon being triggered will flash in an area around it.
/// </summary>
[RegisterComponent]
internal sealed class FlashOnTriggerComponent : Component
internal sealed partial class FlashOnTriggerComponent : Component
{
[DataField("range")] internal float Range = 1.0f;
[DataField("duration")] internal float Duration = 8.0f;