refactor: packets

This commit is contained in:
cha0s 2024-07-20 21:26:00 -05:00
parent 6957365723
commit 1d35b9b6d5
11 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import Ecs from '@/ecs/ecs.js';
import {decode, encode} from '@/packets/index.js';
import {decode, encode} from '@/net/packets/index.js';
import {
CHUNK_SIZE,
RESOLUTION,

View File

@ -1,4 +1,4 @@
import {encode} from '@/packets/index.js';
import {encode} from '@/net/packets/index.js';
let connected = false;
let socket;

View File

@ -1,4 +1,4 @@
import {encode} from '@/packets/index.js';
import {encode} from '@/net/packets/index.js';
import {CLIENT_PREDICTION} from '@/util/constants.js';
import Client from './client.js';

View File

@ -1,6 +1,6 @@
import {del, get, set} from 'idb-keyval';
import {encode} from '@/packets/index.js';
import {encode} from '@/net/packets/index.js';
import createEcs from '../../create/ecs.js';
import '../../create/forest.js';

View File

@ -1,7 +1,7 @@
import {useEffect, useState} from 'react';
import {Outlet, useParams} from 'react-router-dom';
import {decode, encode} from '@/packets/index.js';
import {decode, encode} from '@/net/packets/index.js';
import styles from './play.module.css';