aboutsummaryrefslogtreecommitdiff
path: root/lib/components/pixi_container.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/components/pixi_container.js')
-rw-r--r--lib/components/pixi_container.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/components/pixi_container.js b/lib/components/pixi_container.js
new file mode 100644
index 0000000..5e5cb1f
--- /dev/null
+++ b/lib/components/pixi_container.js
@@ -0,0 +1,25 @@
+import { Component } from '@serpentity/serpentity';
+
+/**
+ * Component that stores a pixi container
+ *
+ * @extends {external:Serpentity.Component}
+ * @class PixiContainerComponent
+ * @param {object} config a configuration object to extend.
+ */
+export default class PixiContainerComponent extends Component {
+ constructor(config) {
+
+ super(config);
+
+ /**
+ * The properthy that holds the pixi container
+ *
+ * @property {external:PixiJs.Container} container
+ * @name container
+ * @instance
+ * @memberof PixiContainerComponent
+ */
+ this.container = this.container || null;
+ }
+};