Constructor
new ReferenceValidator(optionsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
options | Object | <optional> |
- Source
Classes
Methods
(static) validate(data, optionsopt) → {Object}
Static shortcut to validate references on data.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
data | Object | ||
options | Object | <optional> |
- Source
Returns:
- Type:
- Object
validate(data, optionsopt) → {Object}
Validate data for duplicate entity/component IDs and dangling references.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
data | Object | ||
options | Object | <optional> |
- Source
Returns:
- Type:
- Object