chore: tidy
This commit is contained in:
parent
a5e02abe16
commit
2d8a966849
|
@ -1,8 +1,8 @@
|
|||
import Ecs from '@/ecs/ecs.js';
|
||||
import Types from './components/index.js';
|
||||
import Types from '@/ecs-components/index.js';
|
||||
|
||||
class EngineEcs extends Ecs {
|
||||
static Types = Types;
|
||||
}
|
||||
|
||||
export {EngineEcs as Ecs};
|
||||
export default EngineEcs;
|
|
@ -3,14 +3,12 @@ import {
|
|||
RESOLUTION,
|
||||
TPS,
|
||||
} from '@/constants.js';
|
||||
import {Ecs} from './ecs/index.js';
|
||||
|
||||
import ControlMovement from './ecs/systems/control-movement.js';
|
||||
import ApplyMomentum from './ecs/systems/apply-momentum.js';
|
||||
import CalculateAabbs from './ecs/systems/calculate-aabbs.js';
|
||||
import UpdateSpatialHash from './ecs/systems/update-spatial-hash.js';
|
||||
|
||||
import {decode, encode} from '@/engine/net/packets/index.js';
|
||||
import ControlMovement from '@/ecs-systems/control-movement.js';
|
||||
import ApplyMomentum from '@/ecs-systems/apply-momentum.js';
|
||||
import CalculateAabbs from '@/ecs-systems/calculate-aabbs.js';
|
||||
import UpdateSpatialHash from '@/ecs-systems/update-spatial-hash.js';
|
||||
import Ecs from '@/engine/ecs.js';
|
||||
import {decode, encode} from '@/packets/index.js';
|
||||
|
||||
const players = {
|
||||
0: {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {Sprite} from '@pixi/react';
|
||||
import {useState} from 'react';
|
||||
|
||||
import {Ecs} from '@/engine/ecs/index.js';
|
||||
import Ecs from '@/engine/ecs.js';
|
||||
import usePacket from '@/hooks/use-packet';
|
||||
|
||||
export default function EcsComponent() {
|
|
@ -1,4 +1,4 @@
|
|||
import Ui from '@/components/ui.jsx';
|
||||
import Ui from '@/react-components/ui.jsx';
|
||||
|
||||
export default function Index() {
|
||||
return (
|
||||
|
|
|
@ -2,9 +2,9 @@ import {useEffect, useState} from 'react';
|
|||
import {Outlet, useParams} from 'react-router-dom';
|
||||
|
||||
import ClientContext from '@/context/client.js';
|
||||
import {decode, encode} from '@/engine/net/packets/index.js';
|
||||
import LocalClient from '@/net/client/local.js';
|
||||
import RemoteClient from '@/net/client/remote.js';
|
||||
import {decode, encode} from '@/packets/index.js';
|
||||
|
||||
import styles from './play.module.css';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user