mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-13 03:06:15 +00:00
Initial commit
This commit is contained in:
6
assets/js/hooks/Mapper/helpers/getSystemById.ts
Normal file
6
assets/js/hooks/Mapper/helpers/getSystemById.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { SolarSystemRawType, SolarSystemStaticInfoRaw } from '@/hooks/Mapper/types';
|
||||
|
||||
export const getSystemById = (systems: SolarSystemRawType[], systemId: string) => systems.find(x => x.id === systemId);
|
||||
|
||||
export const getSystemStaticById = (systems: SolarSystemStaticInfoRaw[], systemId: string) =>
|
||||
systems.find(x => x.solar_system_id.toString() === systemId);
|
||||
Reference in New Issue
Block a user