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