decord/source/modules/game_claim/UnclaimedGamesStore.tsx
2026-07-30 10:14:41 +00:00

63 lines
1.6 KiB
TypeScript

// Module ID: 15157
// Function ID: 15158
// Name: getMap
// Dependencies: [589, 709, 2]
// Module 15157 (getMap)
import { Store } from "initialize";
let c0 = null;
class UnclaimedGamesStore extends Store {
}
const prototype = UnclaimedGamesStore.prototype;
prototype["getMap"] = function getMap() {
return c0;
};
prototype["getUnclaimedGameIdsForGuild"] = function getUnclaimedGameIdsForGuild(arg0) {
let items;
if (c0 != null) {
items = tmp[arg0];
}
if (items == null) {
items = [];
}
return items;
};
prototype["hasUnclaimedGames"] = function hasUnclaimedGames(arg0) {
let tmp2;
if (c0 != null) {
tmp2 = tmp[arg0];
}
let tmp4 = null != tmp2;
if (tmp4) {
tmp4 = tmp2.length > 0;
}
return tmp4;
};
prototype["getGuildIdsWithUnclaimedGames"] = function getGuildIdsWithUnclaimedGames() {
if (null == closure_0) {
return [];
} else {
const _Object = Object;
const keys = Object.keys(closure_0);
return keys.filter((arg0) => {
let items = table[arg0];
if (items == null) {
items = [];
}
return items.length > 0;
});
}
};
UnclaimedGamesStore.displayName = "UnclaimedGamesStore";
const unclaimedGamesStore = new UnclaimedGamesStore(require("dispatcher"), {
LOGOUT: function handleLogout() {
let c0 = null;
},
UNCLAIMED_GAMES_FETCH_SUCCESS: function handleFetchSuccess(guildIdToGameIds) {
guildIdToGameIds = guildIdToGameIds.guildIdToGameIds;
}
});
const result = require("set").fileFinishedImporting("modules/game_claim/UnclaimedGamesStore.tsx");
export default unclaimedGamesStore;