refactor: creators
This commit is contained in:
parent
349a93ab4b
commit
a670e201d6
|
@ -1,4 +1,4 @@
|
||||||
import createEcs from './create-ecs.js';
|
import createEcs from './ecs.js';
|
||||||
|
|
||||||
export default async function createHouse(Ecs, id) {
|
export default async function createHouse(Ecs, id) {
|
||||||
const ecs = createEcs(Ecs);
|
const ecs = createEcs(Ecs);
|
|
@ -7,11 +7,11 @@ import Ecs from '@/ecs/ecs.js';
|
||||||
import {decode, encode} from '@/packets/index.js';
|
import {decode, encode} from '@/packets/index.js';
|
||||||
import Script from '@/util/script.js';
|
import Script from '@/util/script.js';
|
||||||
|
|
||||||
import createEcs from './create-ecs.js';
|
import createEcs from './create/ecs.js';
|
||||||
import createForest from './create-forest.js';
|
import createForest from './create/forest.js';
|
||||||
import createHomestead from './create-homestead.js';
|
import createHomestead from './create/homestead.js';
|
||||||
import createHouse from './create-house.js';
|
import createHouse from './create/house.js';
|
||||||
import createPlayer from './create-player.js';
|
import createPlayer from './create/player.js';
|
||||||
|
|
||||||
import {LRUCache} from 'lru-cache';
|
import {LRUCache} from 'lru-cache';
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@ import {del, get, set} from 'idb-keyval';
|
||||||
|
|
||||||
import {encode} from '@/packets/index.js';
|
import {encode} from '@/packets/index.js';
|
||||||
|
|
||||||
import createEcs from '../../create-ecs.js';
|
import createEcs from '../../create/ecs.js';
|
||||||
import '../../create-forest.js';
|
import '../../create/forest.js';
|
||||||
import '../../create-homestead.js';
|
import '../../create/homestead.js';
|
||||||
import '../../create-player.js';
|
import '../../create/player.js';
|
||||||
|
|
||||||
import Engine from '../../engine.js';
|
import Engine from '../../engine.js';
|
||||||
import Server from './server.js';
|
import Server from './server.js';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user