Search
Preparing search index...
The search index is not available
oldschooljs
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
SimpleTable
Class SimpleTable<T>
Type parameters
T
Hierarchy
SimpleTable
Index
Constructors
constructor
Properties
length
table
total
Weight
Methods
add
delete
roll
Constructors
constructor
new
Simple
Table
(
)
:
SimpleTable
Returns
SimpleTable
Properties
length
length
:
number
table
table
:
SimpleTableItem
<
T
>
[]
total
Weight
total
Weight
:
number
Methods
add
add
(
item
:
T
, weight
?:
number
)
:
this
Parameters
item:
T
Default value
weight:
number
= 1
Returns
this
delete
delete
(
item
:
T
)
:
this
Parameters
item:
T
Returns
this
roll
roll
(
)
:
SimpleTableItem
<
T
>
[
"item"
]
Returns
SimpleTableItem
<
T
>
[
"item"
]
Globals
Simple
Table
constructor
length
table
total
Weight
add
delete
roll