Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SimpleTable<T>

Type parameters

  • T

Hierarchy

  • SimpleTable

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

length

length: number

table

table: SimpleTableItem<T>[]

totalWeight

totalWeight: number

Methods

add

  • add(item: T, weight?: number): this

delete

  • delete(item: T): this

roll

  • roll(): SimpleTableItem<T>["item"]