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

@@ -4,7 +4,7 @@ namespace Content.Client.Weapons.Melee.Components;
/// Used for melee attack animations. Typically just has a fadeout.
/// </summary>
[RegisterComponent]
public sealed class WeaponArcVisualsComponent : Component
public sealed partial class WeaponArcVisualsComponent : Component
{
[DataField("animation")]
public WeaponArcAnimation Animation = WeaponArcAnimation.None;

View File

@@ -4,7 +4,7 @@ using Robust.Client.UserInterface;
namespace Content.Client.Weapons.Ranged.Components;
[RegisterComponent]
public sealed class AmmoCounterComponent : SharedAmmoCounterComponent
public sealed partial class AmmoCounterComponent : SharedAmmoCounterComponent
{
public Control? Control;
}

View File

@@ -6,7 +6,7 @@ namespace Content.Client.Weapons.Ranged.Components;
/// Visualizer for gun mag presence; can change states based on ammo count or toggle visibility entirely.
/// </summary>
[RegisterComponent, Access(typeof(GunSystem))]
public sealed class MagazineVisualsComponent : Component
public sealed partial class MagazineVisualsComponent : Component
{
/// <summary>
/// What RsiState we use.

View File

@@ -3,7 +3,7 @@ using Content.Client.Weapons.Ranged.Systems;
namespace Content.Client.Weapons.Ranged.Components;
[RegisterComponent, Access(typeof(GunSystem))]
public sealed class SpentAmmoVisualsComponent : Component
public sealed partial class SpentAmmoVisualsComponent : Component
{
/// <summary>
/// Should we do "{_state}-spent" or just "spent"