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
@@ -7,7 +7,7 @@ namespace Content.Shared.Emp;
|
||||
/// While entity has this component it is "disabled" by EMP.
|
||||
/// Add desired behaviour in other systems
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentPause]
|
||||
[Access(typeof(SharedEmpSystem))]
|
||||
public sealed partial class EmpDisabledComponent : Component
|
||||
{
|
||||
@@ -15,6 +15,7 @@ public sealed partial class EmpDisabledComponent : Component
|
||||
/// Moment of time when component is removed and entity stops being "disabled"
|
||||
/// </summary>
|
||||
[DataField("timeLeft", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
||||
[AutoPausedField]
|
||||
public TimeSpan DisabledUntil;
|
||||
|
||||
[DataField("effectCoolDown"), ViewVariables(VVAccess.ReadWrite)]
|
||||
@@ -23,5 +24,6 @@ public sealed partial class EmpDisabledComponent : Component
|
||||
/// <summary>
|
||||
/// When next effect will be spawned
|
||||
/// </summary>
|
||||
[AutoPausedField]
|
||||
public TimeSpan TargetTime = TimeSpan.Zero;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user