Interface IRunBot

Namespace
SurvivorsMaker.Balance
Assembly
SurvivorsMaker.Balance.dll

An automated player for headless runs. One instance plays one run at a time; the runner calls Begin(RunState, SimRandom) before each run. Bots must use only the random they are given so results stay reproducible.

public interface IRunBot

Properties

Name

Short name shown in reports, e.g. "random" or "greedy".

string Name { get; }

Property Value

string

Methods

Begin(RunState, SimRandom)

void Begin(RunState run, SimRandom random)

Parameters

run RunState
random SimRandom

ChooseLevelUp(RunState)

Index into Choices. Must be a choice the controller accepts.

int ChooseLevelUp(RunState run)

Parameters

run RunState

Returns

int

Move(SimWorld)

Movement for the next tick, length 0–1.

Vec2 Move(SimWorld world)

Parameters

world SimWorld

Returns

Vec2

Shop(RunController)

Spend the shop phase through the controller (buy, reroll, lock, merge, recycle). Do not call NextWave.

void Shop(RunController controller)

Parameters

controller RunController