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 = () => { - ); };