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