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 @@
namespace Content.Shared.Weapons.Melee.Components;
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMeleeWeaponSystem))]
public sealed class BonusMeleeAttackRateComponent : Component
public sealed partial class BonusMeleeAttackRateComponent : Component
{
/// <summary>
/// The value added onto the attack rate of a melee weapon

View File

@@ -10,7 +10,7 @@ namespace Content.Shared.Weapons.Melee.Components;
/// This exists only for event relays and doing entity shenanigans.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMeleeWeaponSystem))]
public sealed class BonusMeleeDamageComponent : Component
public sealed partial class BonusMeleeDamageComponent : Component
{
/// <summary>
/// The damage that will be added.

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Weapons.Melee.Components;
/// Indicates that this meleeweapon requires wielding to be useable.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(WieldableSystem))]
public sealed class MeleeRequiresWieldComponent : Component
public sealed partial class MeleeRequiresWieldComponent : Component
{
}

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Weapons.Melee.Components;
/// Plays the specified sound upon receiving damage of the specified type.
/// </summary>
[RegisterComponent]
public sealed class MeleeSoundComponent : Component
public sealed partial class MeleeSoundComponent : Component
{
/// <summary>
/// Specified sounds to apply when the entity takes damage with the specified group.