TableResultData

data. TableResultData

The data schema for a TableResult embedded document within a Roll Table.

Constructor

new TableResultData(data, documentopt)

See:
  • BaseTableResult
Properties:
Name Type Attributes Default Description
_id string

The _id which uniquely identifies this TableResult embedded document

type string <optional>
p

A result sub-type from CONST.TABLE_RESULT_TYPES

text string <optional>

The text which describes the table result

img string <optional>

An image file url that represents the table result

collection string <optional>

A named collection from which this result is drawn

resultId string <optional>

The _id of a Document within the collection this result references

weight number <optional>
1

The probabilistic weight of this result relative to other results

range Array.<number> <optional>

A length 2 array of ascending integers which defines the range of dice roll totals which produce this drawn result

drawn boolean <optional>
false

Has this result already been drawn (without replacement)

flags object <optional>
{}

An object of optional key/value flags

Parameters:
Name Type Attributes Description
data object

Initial data used to construct the data object

document BaseTableResult <optional>

The document to which this data object belongs

Extends

  • DocumentData