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
Methods
EndWave()
During a wave: ends it as survived.
RunResult EndWave()
Returns
GiveCurrency(int)
RunResult GiveCurrency(int amount)
Parameters
amountint
Returns
GiveItem(string)
Between waves or in field mode during a wave: adds an item or upgrade by id.
RunResult GiveItem(string itemId)
Parameters
itemIdstring
Returns
GiveLevels(int)
Gains levels now (pending level-ups as usual).
RunResult GiveLevels(int levels)
Parameters
levelsint
Returns
GiveWeapon(string)
Between waves: adds a weapon (by item id) to a free slot.
RunResult GiveWeapon(string weaponId)
Parameters
weaponIdstring
Returns
SetInvulnerable(bool)
During a wave: player takes no damage while on.
RunResult SetInvulnerable(bool on)
Parameters
Truebool
Returns
SkipToWave(int)
Between waves: the next wave started is wave (1-based).
RunResult SkipToWave(int wave)
Parameters
waveint
Returns
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)