Interface IAnalysisJob<TResult>

Namespace
SurvivorsMaker.Balance
Assembly
SurvivorsMaker.Balance.dll

A long headless job the editor can advance in slices and cancel.

public interface IAnalysisJob<TResult>

Type Parameters

TResult

Properties

Cancelled

bool Cancelled { get; }

Property Value

bool

Progress

0–1.

float Progress { get; }

Property Value

float

Result

Valid once Step returned true (partial when cancelled).

TResult Result { get; }

Property Value

TResult

Methods

Cancel()

void Cancel()

Step(double)

Does up to budgetMilliseconds of work. Returns true when finished.

bool Step(double budgetMilliseconds)

Parameters

budgetMilliseconds double

Returns

bool