Interface IStatDebitSource

Namespace
SurvivorsMaker.Core
Assembly
SurvivorsMaker.Core.dll

Optional atomic debit capability. False must leave the source unchanged.

public interface IStatDebitSource : IStatSource
Inherited Members

Methods

TryDebit(string, float)

Atomically spends a nonnegative amount from a source; false must leave its state unchanged.

bool TryDebit(string key, float amount)

Parameters

key string
amount float

Returns

bool