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