2026-09-14 20:04:03 +00:00
|
|
|
// Module ID: 11650
|
|
|
|
|
// Function ID: 11651
|
2026-09-03 10:05:34 +00:00
|
|
|
// Name: getApplicationIdsForGame
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [4864, 1916, 2]
|
2026-09-03 10:05:34 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-14 20:04:03 +00:00
|
|
|
// Module 11650 (getApplicationIdsForGame)
|
2026-09-12 13:45:10 +00:00
|
|
|
import ApplicationStore from "ApplicationStore" /* 4864 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import GameStore from "GameStore" /* 1916 */;
|
2026-09-03 10:05:34 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/games/utils/getApplicationIdsForGame.tsx");
|
2026-09-03 10:05:34 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
export default function getApplicationIdsForGame(gameId) {
|
2026-09-03 10:05:34 +00:00
|
|
|
const set = new Set();
|
2026-09-10 05:38:07 +00:00
|
|
|
if (null != gameId) {
|
|
|
|
|
set.add(gameId);
|
|
|
|
|
let game = GameStore.getGame(gameId);
|
2026-09-03 10:05:34 +00:00
|
|
|
if (game != null) {
|
|
|
|
|
let linkedApplications = game.linkedApplications;
|
|
|
|
|
if (linkedApplications != null) {
|
|
|
|
|
let item = linkedApplications.forEach((id) => set.add(id.id));
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const application = set.getApplication(gameId);
|
2026-09-03 10:05:34 +00:00
|
|
|
if (application != null) {
|
|
|
|
|
const linkedGames = application.linkedGames;
|
|
|
|
|
if (linkedGames != null) {
|
|
|
|
|
const item1 = linkedGames.forEach((id) => {
|
|
|
|
|
set.add(id.id);
|
2026-09-10 05:38:07 +00:00
|
|
|
const game = GameStore.getGame(id.id);
|
2026-09-03 10:05:34 +00:00
|
|
|
if (game != null) {
|
|
|
|
|
const linkedApplications = game.linkedApplications;
|
|
|
|
|
if (linkedApplications != null) {
|
|
|
|
|
const item = linkedApplications.forEach((id) => set.add(id.id));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return set;
|
|
|
|
|
};
|