refactor: creators

This commit is contained in:
cha0s 2024-07-20 04:19:39 -05:00
parent 349a93ab4b
commit a670e201d6
7 changed files with 10 additions and 10 deletions

View File

@ -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);

View File

@ -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';

View File

@ -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';