Interface IWaveView

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

Something that shows the running wave. The game loop calls it in this order: WaveStarted once, then per fixed tick Tick (after the simulation step, with that tick's events), Render every frame, and WaveEnded once.

public interface IWaveView

Methods

Render(SimWorld, float)

Every frame. alpha 0–1 is the time between the last two ticks, for interpolation.

void Render(SimWorld world, float alpha)

Parameters

world SimWorld
alpha float

Tick(SimWorld)

After one simulation step. world.Events holds this tick's events.

void Tick(SimWorld world)

Parameters

world SimWorld

WaveEnded(SimWorld)

void WaveEnded(SimWorld world)

Parameters

world SimWorld

WaveStarted(SimWorld)

void WaveStarted(SimWorld world)

Parameters

world SimWorld