Options
All
  • Public
  • Public/Protected
  • All
Menu

Extend the base TokenData to define a PrototypeToken which exists within a parent Actor.

memberof

data

property

{boolean} randomImg Does the prototype token use a random wildcard image?

Hierarchy

Index

Constructors

Accessors

  • The Actor which owns this Prototype Token

    Returns BaseActor

Methods

  • toObject(source?: boolean): any
  • Copy and transform the DataModel into a plain object. Draw the values of the extracted object from the data source (by default) otherwise from its transformed values.

    Parameters

    • source: boolean = true

    Returns any

    The extracted primitive object

  • migrateData(data: any): any
  • Migrate candidate source data for this DataModel which may require initial cleaning or transformations.

    Parameters

    • data: any

      The candidate source data from which the model will be constructed

    Returns any

    Migrated source data, if necessary

  • shimData(data: any, options: any): any
  • Take data which conforms to the current data schema and add backwards-compatible accessors to it in order to support older code which uses this data.

    Parameters

    • data: any

      Data which matches the current schema

    • options: any

      Additional shimming options

    Returns any

    Data with added backwards-compatible properties