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 @@ using Content.Shared.PDA;
namespace Content.Server.PDA.Ringer
{
[RegisterComponent]
public sealed class RingerComponent : Component
public sealed partial class RingerComponent : Component
{
[DataField("ringtone")]
public Note[] Ringtone = new Note[SharedRingerSystem.RingtoneLength];
@@ -30,7 +30,7 @@ namespace Content.Server.PDA.Ringer
}
[RegisterComponent]
public sealed class ActiveRingerComponent : Component
public sealed partial class ActiveRingerComponent : Component
{
}
}

View File

@@ -7,7 +7,7 @@ namespace Content.Server.PDA.Ringer;
/// Traitors are told the code when greeted.
/// </summary>
[RegisterComponent, Access(typeof(RingerSystem))]
public sealed class RingerUplinkComponent : Component
public sealed partial class RingerUplinkComponent : Component
{
/// <summary>
/// Notes to set ringtone to in order to lock or unlock the uplink.