From 45b46d155dbf01d55b530343bfda13e77a53b583 Mon Sep 17 00:00:00 2001 From: moxitech Date: Sat, 16 Nov 2024 19:39:43 +0700 Subject: [PATCH] DNS/Player simulation dto --- .../src/app/components/Player/Player.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/usn-frontend/src/app/components/Player/Player.tsx b/src/usn-frontend/src/app/components/Player/Player.tsx index d663cbd..c9b0132 100644 --- a/src/usn-frontend/src/app/components/Player/Player.tsx +++ b/src/usn-frontend/src/app/components/Player/Player.tsx @@ -128,11 +128,24 @@ const InitPlayer: React.FC = ({ Click, TimeStep, TimeEnd, onTimeUpdate } ); }; - +// IPlayerSimulationPart - часть симуляции +interface IPlayerSimulationPart { + Timestamp?: number // Временная метка + CGS?: [] // базовые станции - DTO + UAV?: [] // беспилотные аппараты - DTO +} +// IPlayerTsInstance - объект плеера interface IPlayerTsInstance { + TimestampEnd?: number + TimestampStep?: number + Simulations?: IPlayerSimulationPart[] } -const PlayerTsInstance : React.FC = () => { +const PlayerTsInstance : React.FC = ({ + TimestampEnd, + TimestampStep, + Simulations +}) => { const [drones, setDrones] = useState([]); const [baseStations, setBaseStations] = useState([]); const [selectedObject, setSelectedObject] = useState<{ type: 'drone' | 'baseStation'; id: number } | null>(null); @@ -268,7 +281,6 @@ const PlayerTsInstance : React.FC = () => { - ); };