new POM.SpriteElement(manager, data)
POM Manager Sprite Element
Name | Type | Description |
---|---|---|
manager |
Manager | the core manager |
data |
Object | data for the element |
Extends
- PIXI.Container
Methods
-
getData(){Object}
-
get data of SpriteElement (including defaults)
Returns:
Type Description Object data representing the sprite -
updateData(data)
-
update data of sprite from JSON decoded object
Name Type Description data
Object JSON decoded object representing the content