Constructor
new ActorData(data, documentopt)
- See:
-
- BaseActor
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies this Actor document |
||
name |
string | The name of this Actor |
||
type |
string | An Actor subtype which configures the system data model applied |
||
img |
string |
<optional> |
An image file path which provides the artwork for this Actor |
|
data |
object |
<optional> |
The system data object which is defined by the system template.json model |
|
token |
data.PrototypeTokenData |
<optional> |
Default Token settings which are used for Tokens created from this Actor |
|
items |
Collection.<BaseItem> | A Collection of Item embedded Documents |
||
effects |
Collection.<BaseActiveEffect> | A Collection of ActiveEffect embedded Documents |
||
folder |
string | null | The _id of a Folder which contains this Actor |
||
sort |
number |
<optional> |
The numeric sort value which orders this Actor relative to its siblings |
|
permission |
object |
<optional> |
An object which configures user permissions to this Actor |
|
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 |
BaseActor |
<optional> |
The document to which this data object belongs |
Extends
- DocumentData
Members
DEFAULT_ICON :string
The default icon used for newly created Macro documents
Type:
- string