]>
Commit | Line | Data |
---|---|---|
0616b3f0 RBR |
1 | import { Component } from '@serpentity/serpentity'; |
2 | ||
3 | /** | |
4 | * Component that stores a pixi container | |
5 | * | |
6 | * @extends {external:Serpentity.Component} | |
7 | * @class PixiContainerComponent | |
8 | * @param {object} config a configuration object to extend. | |
9 | */ | |
10 | export default class PixiContainerComponent extends Component { | |
11 | constructor(config) { | |
12 | ||
13 | super(config); | |
14 | ||
15 | /** | |
16 | * The properthy that holds the pixi container | |
17 | * | |
18 | * @property {external:PixiJs.Container} container | |
19 | * @name container | |
20 | * @instance | |
21 | * @memberof PixiContainerComponent | |
22 | */ | |
23 | this.container = this.container || null; | |
24 | } | |
7741a3cc | 25 | } |