Constructor
new WallData(data, documentopt)
- See:
-
- BaseWall
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies the embedded Wall document |
||
c |
Array.<number> | The wall coordinates, a length-4 array of finite numbers [x0,y0,x1,y1] |
||
light |
number |
<optional> |
0
|
The illumination restriction type of this wall |
move |
number |
<optional> |
0
|
The movement restriction type of this wall |
sight |
number |
<optional> |
0
|
The visual restriction type of this wall |
sound |
number |
<optional> |
0
|
The auditory restriction type of this wall |
dir |
number |
<optional> |
0
|
The direction of effect imposed by this wall |
door |
number |
<optional> |
0
|
The type of door which this wall contains, if any |
ds |
number |
<optional> |
0
|
The state of the door this wall contains, if any |
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 |
BaseWall |
<optional> |
The embedded document to which this data object belongs |
Extends
- DocumentData
Methods
(static) defineSchema() → {DocumentSchema}
The data schema for a WallData object
Returns:
- Type
- DocumentSchema