refactor: decorated

This commit is contained in:
cha0s 2021-01-27 15:14:03 -06:00
parent f7c8f0fe62
commit 6de7bdb56d
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export default (latus, EntityList) => class PhysicsEntityList extends EntityList {
export default (EntityList) => class PhysicsEntityList extends EntityList {
set world(world) {
const entities = Object.values(this.entities);

View File

@ -1,4 +1,4 @@
export default (latus, Layer) => class PhysicsLayer extends Layer {
export default (Layer) => class PhysicsLayer extends Layer {
set world(world) {
this.entityList.world = world;

View File

@ -1,4 +1,4 @@
export default (latus, Layers) => class PhysicsLayers extends Layers {
export default (Layers) => class PhysicsLayers extends Layers {
set world(world) {
for (let index = 0; index < this.layers.length; index++) {

View File

@ -6,7 +6,7 @@ import World from '../../matter/world';
const ROOM_BOUND_SIZE = 64;
const HALF_ROOM_BOUND_SIZE = ROOM_BOUND_SIZE / 2;
export default (latus, Room) => class PhysicsRoom extends Room {
export default (Room) => class PhysicsRoom extends Room {
async load(json) {
await super.load(json);