Interface IPlaytestCommands

Namespace
SurvivorsMaker.Run
Assembly
SurvivorsMaker.Run.dll

Development cheats for the in-game Playtest panel. Implemented by Run/Flow on top of RunController. Calls are rejected with WrongPhase or NotAllowed instead of throwing. A run that used any of them is marked UsedCheats so records and unlocks can ignore it.

public interface IPlaytestCommands

Properties

UsedCheats

bool UsedCheats { get; }

Property Value

bool

Methods

EndWave()

During a wave: ends it as survived.

RunResult EndWave()

Returns

RunResult

GiveCurrency(int)

RunResult GiveCurrency(int amount)

Parameters

amount int

Returns

RunResult

GiveItem(string)

Between waves or in field mode during a wave: adds an item or upgrade by id.

RunResult GiveItem(string itemId)

Parameters

itemId string

Returns

RunResult

GiveLevels(int)

Gains levels now (pending level-ups as usual).

RunResult GiveLevels(int levels)

Parameters

levels int

Returns

RunResult

GiveWeapon(string)

Between waves: adds a weapon (by item id) to a free slot.

RunResult GiveWeapon(string weaponId)

Parameters

weaponId string

Returns

RunResult

SetInvulnerable(bool)

During a wave: player takes no damage while on.

RunResult SetInvulnerable(bool on)

Parameters

True bool

Returns

RunResult

SkipToWave(int)

Between waves: the next wave started is wave (1-based).

RunResult SkipToWave(int wave)

Parameters

wave int

Returns

RunResult

SpawnEnemies(string, int)

During a wave: spawns count of an enemy id around the player now (bypasses telegraph and capacity).

RunResult SpawnEnemies(string enemyId, int count)

Parameters

enemyId string
count int

Returns

RunResult