Class PlaytestSpeed

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

Game-speed steps for the playtest panel.

public static class PlaytestSpeed
Inheritance
PlaytestSpeed
Inherited Members

Methods

Clamp(float, float, float)

public static float Clamp(float value, float min, float max)

Parameters

value float
min float
max float

Returns

float

Label(float)

"0.25×", "1×", "8×".

public static string Label(float speed)

Parameters

speed float

Returns

string

Step(float, float[], int)

The next step above (direction > 0) or below current in ascending steps; stays at the ends.

public static float Step(float current, float[] steps, int direction)

Parameters

current float
steps float[]
direction int

Returns

float