EntityBlueprint
Classes
Template for instantiating entities
Functions
EntityBlueprint
Template for instantiating entities
Kind: global class
entityBlueprint.add(component)
Kind: instance method of EntityBlueprint
| Param | Type |
|---|---|
| component | Object |
entityBlueprint.addJSON(klass, json)
Kind: instance method of EntityBlueprint
| Param | Type |
|---|---|
| klass | Class.<T> |
| json | Object |
entityBlueprint.fromJSON(json, registry)
Kind: instance method of EntityBlueprint
| Param | Type |
|---|---|
| json | Object |
| registry | ModuleRegistry |
entityBlueprint.build([templateSeed]) ⇒ Entity
Kind: instance method of EntityBlueprint
| Param | Type |
|---|---|
| [templateSeed] | object |
EntityBlueprint.from(components) ⇒ EntityBlueprint
Kind: static method of EntityBlueprint
| Param | Type |
|---|---|
| components | Array |
EntityBlueprint.fromJSON(json, registry)
Kind: static method of EntityBlueprint
| Param | Type |
|---|---|
| json | Object |
| registry | ModuleRegistry |
populateJsonTemplate(template, [seed])
Kind: global function
| Param | Type |
|---|---|
| template | Object |
| [seed] | Object |