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

@@ -6,6 +6,6 @@ namespace Content.Shared.Bed.Sleep
/// Prevents waking up. Use as a status effect.
/// </summary>
[NetworkedComponent, RegisterComponent]
public sealed class ForcedSleepingComponent : Component
public sealed partial class ForcedSleepingComponent : Component
{}
}

View File

@@ -53,9 +53,9 @@ namespace Content.Server.Bed.Sleep
}
public sealed class SleepActionEvent : InstantActionEvent {}
public sealed partial class SleepActionEvent : InstantActionEvent {}
public sealed class WakeActionEvent : InstantActionEvent {}
public sealed partial class WakeActionEvent : InstantActionEvent {}
/// <summary>
/// Raised on an entity when they fall asleep or wake up.

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Audio;
namespace Content.Shared.Bed.Sleep;
[RegisterComponent]
public sealed class SleepEmitSoundComponent : Component
public sealed partial class SleepEmitSoundComponent : Component
{
/// <summary>
/// Sound to play when sleeping

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Bed.Sleep;
/// Added to entities when they go to sleep.
/// </summary>
[NetworkedComponent, RegisterComponent]
public sealed class SleepingComponent : Component
public sealed partial class SleepingComponent : Component
{
/// <summary>
/// How much damage of any type it takes to wake this entity.