refactor: gathered
This commit is contained in:
parent
52dca790f2
commit
a0b619562c
4
src/gathered/packets.js
Normal file
4
src/gathered/packets.js
Normal 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';
|
|
@ -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'),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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';
|
Loading…
Reference in New Issue
Block a user