Skip to content

Class: TimescaleManager ​

csharp
public class TimescaleManager : NetworkedManagerBase<TimescaleManager>, ILogicUpdate

Properties ​

NameDeclarationDescription
desiredTimescalepublic float desiredTimescale { get; set; }
effectTimescalepublic float effectTimescale { get; }Timescale multiplier of DewEffect (FxStopTime and such) induced changes.
shouldTimeBeSlowedBySpecialMenupublic bool shouldTimeBeSlowedBySpecialMenu { get; }

Methods ​

ChangeTimescale(float, float) ​

Lowest of all changes will apply.

csharp
public void ChangeTimescale(float timescale, float duration)

Parameters:

NameTypeDescription
timescalefloat
durationfloat

FrameUpdate() ​

csharp
public override void FrameUpdate()

OnDestroy() ​

csharp
protected override void OnDestroy()

OnStartServer() ​

csharp
public override void OnStartServer()

TimescaleChanged(float, float) ​

csharp
public void TimescaleChanged(float oldVal, float newVal)

Parameters:

NameTypeDescription
oldValfloat
newValfloat

Maintained by the Shape of Dreams Modding Community