Constructor
new BuildableComponent(reporter, instructionsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
reporter |
Reporter | ||
instructions |
ParseInstruction |
<optional> |
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
data.id |
UUID |
<optional> |
|
data.name |
string |
<optional> |
|
data.url |
URL |
<optional> |
|
data.thumbnail |
WrappedImage |
<optional> |
Members
(protected) _allDependencies :Array.<Component>
All "lower" components on which this component depends, either directly or indirectly
Type:
- Array.<Component>
(protected) _applicableMaterialVariantGroups :Array.<MaterialSet>
The distinct material variant groups of this components and its dependencies
Type:
- Array.<MaterialSet>
(protected) _assignableDependencies :Array.<(PositionedMesh|PositionedMeshGroup)>
Dependencies that can be assigned a material (does not necessarily affect the component itself)
Type:
- Array.<(PositionedMesh|PositionedMeshGroup)>
(protected) _dependencies :Object
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
main |
DependencyList | |
UI |
DependencyList | |
specs |
DependencyList |
(protected) _directDependencies :Array.<Component>
All "lower" components on which this component depends directly
Type:
- Array.<Component>
(protected) _materializableDependencies :Array.<Component>
Dependencies that have a variable material (not necessarily directly assignable)
Type:
- Array.<Component>
dependencies :Object
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
main |
DependencyList | |
UI |
DependencyList | |
specs |
DependencyList |
partSettings :Array.<string>
Known UI settings (right now only thumbnail)
Type:
- Array.<string>
Methods
(static) autogenIntegralInstruction(settings) → {Object}
for component tree every array specifies an integral list (not alternatives)
Parameters:
| Name | Type | Description |
|---|---|---|
settings |
Object |
Returns:
- Type
- Object
(async, protected) _build(quality, dependencies) → {Promise.<Component>}
Parameters:
| Name | Type | Description |
|---|---|---|
quality |
LoadingQuality | |
dependencies |
Object.<string, Component> | Dependencies that are loaded with the corresponding quality |
Returns:
- Type
- Promise.<Component>
(async) autoUpdateStatus()
Updates the component's status according to the status of
its dependencies
(async) build(instructionsopt) → {Promise.<BuildableComponent>}
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
instructions |
Object |
<optional> |
Properties
|
Returns:
- Type
- Promise.<BuildableComponent>
dependsDirectlyOn() → {Boolean}
Returns:
- Type
- Boolean
dependsOn() → {Boolean}
Returns:
- Type
- Boolean