aboutsummaryrefslogtreecommitdiff
path: root/lib/components
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-03-09 15:02:35 -0500
committerBen Beltran <ben@nsovocal.com>2020-03-09 15:02:35 -0500
commit7741a3cc37662ab2ff9606bdaffc0317b79a8dd9 (patch)
tree1bee45d2821debe3c6e7e2ab40250218d251097a /lib/components
parentbb8d5ef47baf7ad16a1bc58526f81ce332b090d6 (diff)
Use new lib componentsHEADmain
Diffstat (limited to 'lib/components')
-rw-r--r--lib/components/angle.js25
-rw-r--r--lib/components/body.js2
-rw-r--r--lib/components/control_map.js2
-rw-r--r--lib/components/coupled_entities.js2
-rw-r--r--lib/components/dash.js2
-rw-r--r--lib/components/elastic.js2
-rw-r--r--lib/components/force.js43
-rw-r--r--lib/components/grab.js2
-rw-r--r--lib/components/grab_area.js2
-rw-r--r--lib/components/grabbable.js2
-rw-r--r--lib/components/max_velocity.js2
-rw-r--r--lib/components/pixi_container.js2
-rw-r--r--lib/components/points.js2
-rw-r--r--lib/components/points_collider.js2
-rw-r--r--lib/components/winner.js2
15 files changed, 13 insertions, 81 deletions
diff --git a/lib/components/angle.js b/lib/components/angle.js
deleted file mode 100644
index 65feeab..0000000
--- a/lib/components/angle.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Component } from '@serpentity/serpentity';
-
-/**
- * Component that stores an angle
- *
- * @extends {external:Serpentity.Component}
- * @class AngleComponent
- * @param {object} config a configuration object to extend.
- */
-export default class AngleComponent extends Component {
- constructor(config) {
-
- super(config);
-
- /**
- * The properthy that holds the angle
- *
- * @property {number} angle
- * @instance
- * @memberof AngleComponent
- */
- this.angle = this.angle || 0;
- }
-};
-
diff --git a/lib/components/body.js b/lib/components/body.js
index fc17e17..6034d3e 100644
--- a/lib/components/body.js
+++ b/lib/components/body.js
@@ -21,5 +21,5 @@ export default class BodyComponent extends Component {
*/
this.body = this.body || null;
}
-};
+}
diff --git a/lib/components/control_map.js b/lib/components/control_map.js
index 4edf318..462ad8b 100644
--- a/lib/components/control_map.js
+++ b/lib/components/control_map.js
@@ -54,4 +54,4 @@ export default class ControlMapComponent extends Component {
*/
this.map = this.map || [];
}
-};
+}
diff --git a/lib/components/coupled_entities.js b/lib/components/coupled_entities.js
index 29db813..d3374c9 100644
--- a/lib/components/coupled_entities.js
+++ b/lib/components/coupled_entities.js
@@ -21,5 +21,5 @@ export default class CoupledEntitiesComponent extends Component {
*/
this.coupledEntities = this.coupledEntities || [];
}
-};
+}
diff --git a/lib/components/dash.js b/lib/components/dash.js
index 77807ef..4f482aa 100644
--- a/lib/components/dash.js
+++ b/lib/components/dash.js
@@ -48,4 +48,4 @@ export default class DashComponent extends Component {
*/
this.currentCooldown = 0;
}
-};
+}
diff --git a/lib/components/elastic.js b/lib/components/elastic.js
index ee41cf8..dc3a67d 100644
--- a/lib/components/elastic.js
+++ b/lib/components/elastic.js
@@ -8,5 +8,5 @@ import { Component } from '@serpentity/serpentity';
* @param {object} config a configuration object to extend.
*/
export default class ElasticComponent extends Component {
-};
+}
diff --git a/lib/components/force.js b/lib/components/force.js
deleted file mode 100644
index f0e460c..0000000
--- a/lib/components/force.js
+++ /dev/null
@@ -1,43 +0,0 @@
-import { Component } from '@serpentity/serpentity';
-
-/**
- * Component that stores a force vector
- *
- * @extends {external:Serpentity.Component}
- * @class ForceComponent
- * @param {object} config a configuration object to extend.
- */
-export default class ForceComponent extends Component {
- constructor(config) {
-
- super(config);
-
- /**
- * The properthy that holds the x component of the vector
- *
- * @property {number} x
- * @instance
- * @memberof AngleComponent
- */
- this.x = this.x || 0;
-
- /**
- * The properthy that holds the y component of the vector
- *
- * @property {number} y
- * @instance
- * @memberof AngleComponent
- */
-
- this.y = this.y || 0;
- /**
- * The properthy that holds the z component of the vector
- *
- * @property {number} z
- * @instance
- * @memberof AngleComponent
- */
- this.z = this.z || 0;
- }
-};
-
diff --git a/lib/components/grab.js b/lib/components/grab.js
index ab808a8..df41360 100644
--- a/lib/components/grab.js
+++ b/lib/components/grab.js
@@ -57,4 +57,4 @@ export default class GrabComponent extends Component {
*/
this.currentCooldown = 0;
}
-};
+}
diff --git a/lib/components/grab_area.js b/lib/components/grab_area.js
index 3966c83..c462910 100644
--- a/lib/components/grab_area.js
+++ b/lib/components/grab_area.js
@@ -30,5 +30,5 @@ export default class GrabAreaComponent extends Component {
*/
this.constraint = this.constraint || null;
}
-};
+}
diff --git a/lib/components/grabbable.js b/lib/components/grabbable.js
index 223b95c..a6efb81 100644
--- a/lib/components/grabbable.js
+++ b/lib/components/grabbable.js
@@ -7,5 +7,5 @@ import { Component } from '@serpentity/serpentity';
* @class GrabbableComponent
* @param {object} config a configuration object to extend.
*/
-export default class GrabbableComponent extends Component {};
+export default class GrabbableComponent extends Component {}
diff --git a/lib/components/max_velocity.js b/lib/components/max_velocity.js
index 70bf343..fd696ea 100644
--- a/lib/components/max_velocity.js
+++ b/lib/components/max_velocity.js
@@ -21,5 +21,5 @@ export default class MaxVelocityComponent extends Component {
*/
this.maxVelocity = this.maxVelocity || 20;
}
-};
+}
diff --git a/lib/components/pixi_container.js b/lib/components/pixi_container.js
index 5e5cb1f..c98f165 100644
--- a/lib/components/pixi_container.js
+++ b/lib/components/pixi_container.js
@@ -22,4 +22,4 @@ export default class PixiContainerComponent extends Component {
*/
this.container = this.container || null;
}
-};
+}
diff --git a/lib/components/points.js b/lib/components/points.js
index 02b7e44..d366502 100644
--- a/lib/components/points.js
+++ b/lib/components/points.js
@@ -7,5 +7,5 @@ import { Component } from '@serpentity/serpentity';
* @class PointsComponent
* @param {object} config a configuration object to extend.
*/
-export default class PointsComponent extends Component {};
+export default class PointsComponent extends Component {}
diff --git a/lib/components/points_collider.js b/lib/components/points_collider.js
index ceec7ee..09cc621 100644
--- a/lib/components/points_collider.js
+++ b/lib/components/points_collider.js
@@ -31,5 +31,5 @@ export default class PointsColliderComponent extends Component {
*/
this.pointsTarget = this.pointsTarget || 'nobody';
}
-};
+}
diff --git a/lib/components/winner.js b/lib/components/winner.js
index 74de1c8..1045578 100644
--- a/lib/components/winner.js
+++ b/lib/components/winner.js
@@ -21,6 +21,6 @@ export default class WinnerComponent extends Component {
*/
this.winner = this.winner || null;
}
-};
+}