This commit introduces a new function `PostRouteForAllByNames` to the ESI service, which allows setting a complete route (including waypoints) for all logged-in characters. This is achieved by batch resolving system names to their IDs, improving efficiency and simplifying the process of setting complex routes. The changes include: - Adding `ResolveSystemIDsByNames` to `ESISSO` to fetch multiple system IDs in a single ESI request. - Implementing `PostRouteForAll` in `ESISSO` to handle the logic of setting the destination and waypoints for all characters. - Updating `App.go` to expose `PostRouteForAllByNames` for frontend use. - Modifying the frontend component `RegionMap.tsx` to utilize the new `PostRouteForAllByNames` function when setting routes, replacing the previous sequential calls to `SetDestinationForAll` and `AddWaypointForAllByName`. - Updating Wails generated type definitions (`.d.ts` and `.js`) to reflect the new function.
36 lines
994 B
JavaScript
36 lines
994 B
JavaScript
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
export function AddWaypointForAllByName(arg1, arg2) {
|
|
return window['go']['main']['App']['AddWaypointForAllByName'](arg1, arg2);
|
|
}
|
|
|
|
export function ESILoggedIn() {
|
|
return window['go']['main']['App']['ESILoggedIn']();
|
|
}
|
|
|
|
export function ESILoginStatus() {
|
|
return window['go']['main']['App']['ESILoginStatus']();
|
|
}
|
|
|
|
export function Greet(arg1) {
|
|
return window['go']['main']['App']['Greet'](arg1);
|
|
}
|
|
|
|
export function ListCharacters() {
|
|
return window['go']['main']['App']['ListCharacters']();
|
|
}
|
|
|
|
export function PostRouteForAllByNames(arg1, arg2) {
|
|
return window['go']['main']['App']['PostRouteForAllByNames'](arg1, arg2);
|
|
}
|
|
|
|
export function SetDestinationForAll(arg1, arg2, arg3) {
|
|
return window['go']['main']['App']['SetDestinationForAll'](arg1, arg2, arg3);
|
|
}
|
|
|
|
export function StartESILogin() {
|
|
return window['go']['main']['App']['StartESILogin']();
|
|
}
|