refactor: decorated
This commit is contained in:
parent
f7c8f0fe62
commit
6de7bdb56d
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user