Use new ComponentPauseGenerator (#25183)
Also includes some (non critical) changes to the solution file to re-organize the Roslyn components.
This commit is contained in:
committed by
GitHub
parent
2a2324ecaf
commit
e00f74505c
@@ -11,7 +11,7 @@ namespace Content.Shared.Medical;
|
||||
/// This is used for defibrillators; a machine that shocks a dead
|
||||
/// person back into the world of the living.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentPause]
|
||||
public sealed partial class DefibrillatorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
@@ -24,6 +24,7 @@ public sealed partial class DefibrillatorComponent : Component
|
||||
/// The time at which the zap cooldown will be completed
|
||||
/// </summary>
|
||||
[DataField("nextZapTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
||||
[AutoPausedField]
|
||||
public TimeSpan? NextZapTime;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user