Skip to content

Reference

tilttek/loot-tables
TypeKindRole
LootEntryfinal readonly classAn entry: key, name, image, slot
LootTablefinal readonly classThe entries rolled with one die
LootBoxfinal readonly classThe tables a product rolls, in order
LootCatalogfinal readonly classThe tables and boxes of an application, by key
Reading\CatalogReaderfinal readonly classA catalogue read from plain arrays
Draw\PendingDrawfinal readonly classA committed draw: secret seed and nonce; checks the client seed of a reveal
Draw\LootDrawerfinal readonly classReveals a box from a pending draw, verifies a proof
Draw\RevealedDrawfinal readonly classA revealed draw, its result and its roll; its proof
Draw\LootResultfinal readonly classOne face and one entry per table, and their source
Draw\Pickfinal readonly classThe face and the entry of one table
Draw\DrawSourceenumVerifiable or Physical
Code\ShopCodefinal readonly classOne character per die, written and read
Code\DrawTextfinal readonly classThe faces and the names on one line, written and read
Exception\LootExceptioninterfaceEvery exception of the library
Exception\InvalidLootfinal classA definition refused
Exception\UnknownLootfinal classA box or a table the catalogue does not hold
Exception\InvalidCodefinal classA shop code or a draw text that does not read