refactor: ecs

This commit is contained in:
cha0s 2024-07-20 05:07:39 -05:00
parent bbdfe3b813
commit 9833e2ba16
52 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import Components from '@/ecs-components/index.js';
import Systems from '@/ecs-systems/index.js';
import Components from '@/ecs/components/index.js';
import Systems from '@/ecs/systems/index.js';
export default function createEcs(Ecs) {
const ecs = new Ecs({Components, Systems});

View File

@ -75,8 +75,8 @@ function Ui({disconnected}) {
const [pendingMessage, setPendingMessage] = useState('');
useEffect(() => {
async function setEcsStuff() {
const {default: Components} = await import('@/ecs-components/index.js');
const {default: Systems} = await import('@/ecs-systems/index.js');
const {default: Components} = await import('@/ecs/components/index.js');
const {default: Systems} = await import('@/ecs/systems/index.js');
setComponents(Components);
setSystems(Systems);
}