Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user