Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Content.Server.Explosion.Components;
|
||||
/// Will anchor the attached entity upon a <see cref="TriggerEvent"/>.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class AnchorOnTriggerComponent : Component
|
||||
public sealed partial class AnchorOnTriggerComponent : Component
|
||||
{
|
||||
[DataField("removeOnTrigger")]
|
||||
public bool RemoveOnTrigger = true;
|
||||
|
||||
@@ -6,6 +6,6 @@ namespace Content.Server.Explosion.Components;
|
||||
/// Will delete the attached entity upon a <see cref="TriggerEvent"/>.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class DeleteOnTriggerComponent : Component
|
||||
public sealed partial class DeleteOnTriggerComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ namespace Content.Server.Explosion.Components;
|
||||
/// Explode using the entity's <see cref="ExplosiveComponent"/> if Triggered.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class ExplodeOnTriggerComponent : Component
|
||||
public sealed partial class ExplodeOnTriggerComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Server.Explosion.Components;
|
||||
/// Also in case of an implant using this, gibs the implant user instead.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class GibOnTriggerComponent : Component
|
||||
public sealed partial class GibOnTriggerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Should gibbing also delete the owners items?
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Explosion.Components;
|
||||
/// Will play sound from the attached entity upon a <see cref="TriggerEvent"/>.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class SoundOnTriggerComponent : Component
|
||||
public sealed partial class SoundOnTriggerComponent : Component
|
||||
{
|
||||
[DataField("removeOnTrigger")]
|
||||
public bool RemoveOnTrigger = true;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Explosion.Components.OnTrigger;
|
||||
/// After being triggered applies the specified components and runs triggers again.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class TwoStageTriggerComponent : Component
|
||||
public sealed partial class TwoStageTriggerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How long it takes for the second stage to be triggered.
|
||||
|
||||
Reference in New Issue
Block a user