feat(Map): Follow Character on Map and auto select their current system

fixes #34
This commit is contained in:
Dmitry Popov
2024-10-11 12:11:33 +04:00
parent 912cad42ac
commit 2f672ae970
28 changed files with 517 additions and 74 deletions

View File

@@ -4,7 +4,6 @@ import { MapHandlers, MapUnionTypes, OutCommandHandler, SolarSystemConnection }
import { useMapRootHandlers } from '@/hooks/Mapper/mapRootProvider/hooks';
import { WithChildren } from '@/hooks/Mapper/types/common.ts';
import useLocalStorageState from 'use-local-storage-state';
import { DEFAULT_SETTINGS } from '@/hooks/Mapper/components/mapInterface/widgets/RoutesWidget/RoutesProvider.tsx';
export type MapRootData = MapUnionTypes & {
selectedSystems: string[];

View File

@@ -85,6 +85,10 @@ export const useMapRootHandlers = (ref: ForwardedRef<MapHandlers>) => {
mapRoutes(data as CommandRoutes);
break;
case Commands.centerSystem:
// do nothing here
break;
case Commands.selectSystem:
// do nothing here
break;