diff --git a/app/create-ecs.js b/app/create/ecs.js similarity index 100% rename from app/create-ecs.js rename to app/create/ecs.js diff --git a/app/create-forest.js b/app/create/forest.js similarity index 100% rename from app/create-forest.js rename to app/create/forest.js diff --git a/app/create-homestead.js b/app/create/homestead.js similarity index 100% rename from app/create-homestead.js rename to app/create/homestead.js diff --git a/app/create-house.js b/app/create/house.js similarity index 95% rename from app/create-house.js rename to app/create/house.js index 020b716..81e25db 100644 --- a/app/create-house.js +++ b/app/create/house.js @@ -1,4 +1,4 @@ -import createEcs from './create-ecs.js'; +import createEcs from './ecs.js'; export default async function createHouse(Ecs, id) { const ecs = createEcs(Ecs); diff --git a/app/create-player.js b/app/create/player.js similarity index 100% rename from app/create-player.js rename to app/create/player.js diff --git a/app/engine.js b/app/engine.js index 45424b8..2372d59 100644 --- a/app/engine.js +++ b/app/engine.js @@ -7,11 +7,11 @@ import Ecs from '@/ecs/ecs.js'; import {decode, encode} from '@/packets/index.js'; import Script from '@/util/script.js'; -import createEcs from './create-ecs.js'; -import createForest from './create-forest.js'; -import createHomestead from './create-homestead.js'; -import createHouse from './create-house.js'; -import createPlayer from './create-player.js'; +import createEcs from './create/ecs.js'; +import createForest from './create/forest.js'; +import createHomestead from './create/homestead.js'; +import createHouse from './create/house.js'; +import createPlayer from './create/player.js'; import {LRUCache} from 'lru-cache'; diff --git a/app/net/server/worker.js b/app/net/server/worker.js index 9b58e68..607af4d 100644 --- a/app/net/server/worker.js +++ b/app/net/server/worker.js @@ -2,10 +2,10 @@ import {del, get, set} from 'idb-keyval'; import {encode} from '@/packets/index.js'; -import createEcs from '../../create-ecs.js'; -import '../../create-forest.js'; -import '../../create-homestead.js'; -import '../../create-player.js'; +import createEcs from '../../create/ecs.js'; +import '../../create/forest.js'; +import '../../create/homestead.js'; +import '../../create/player.js'; import Engine from '../../engine.js'; import Server from './server.js';