refactor: gathered

This commit is contained in:
cha0s 2024-05-30 10:34:20 -05:00
parent 52dca790f2
commit a0b619562c
4 changed files with 6 additions and 6 deletions

4
src/gathered/packets.js Normal file
View File

@ -0,0 +1,4 @@
export {default as Action} from '../net/packet/action.js';
export {default as Connect} from '../net/packet/connect.js';
export {default as Connected} from '../net/packet/connected.js';
export {default as Tick} from '../net/packet/tick.js';

View File

@ -1,6 +1,6 @@
// Gathering.
const {default: PacketClass} = await import('./net/packet/packet.js');
Object.values(await import('./net/packet/packets.js'))
Object.values(await import('./gathered/packets.js'))
.forEach((Packet) => {
PacketClass.register(Packet);
});
@ -9,6 +9,6 @@ PacketClass.mapRegistered();
const {default: Ecs} = await import('./ecs/ecs.js');
Ecs.ComponentLikesAndOrBundleLikes = Object.fromEntries(
Object.entries(
await import('./ecs/components.js'),
await import('./gathered/components.js'),
),
);

View File

@ -1,4 +0,0 @@
export {default as Action} from './action.js';
export {default as Connect} from './connect.js';
export {default as Connected} from './connected.js';
export {default as Tick} from './tick.js';