WIP: ECS / Network System #1
|
@ -1,7 +1,7 @@
|
|||
import asyncio
|
||||
from abc import abstractmethod
|
||||
from enum import Enum
|
||||
from typing import List, Optional, Dict
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
from kennel.app import logger
|
||||
from kennel.engine.entities.entity import Entity, EntityManager
|
||||
|
|
|
@ -9,9 +9,9 @@ from kennel.engine.game import Game
|
|||
from kennel.engine.systems.network import (
|
||||
EntityPositionUpdateEvent,
|
||||
Event,
|
||||
UpstreamEventProcessor,
|
||||
EventType,
|
||||
NetworkSystem,
|
||||
UpstreamEventProcessor,
|
||||
)
|
||||
from kennel.engine.systems.system import SystemManager
|
||||
from kennel.engine.systems.world import WorldSystem
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import asyncio
|
||||
import uuid
|
||||
from typing import Annotated, Optional, List
|
||||
from typing import Annotated, List, Optional
|
||||
|
||||
from fastapi import (
|
||||
Cookie,
|
||||
|
@ -92,7 +92,6 @@ async def websocket_endpoint(
|
|||
session: Annotated[str, Depends(get_cookie_or_token)],
|
||||
):
|
||||
await websocket.accept()
|
||||
client = WebSocketClient(websocket)
|
||||
logger.info(f"Websocket connection established for session {session}")
|
||||
|
||||
session_entities = create_session_controllable_entities(session)
|
||||
|
|
Loading…
Reference in New Issue