decord/source/modules/game_claim/UnclaimedGamesStore.tsx

64 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 15163
// Function ID: 15164
// Name: getMap
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
// Module 15163 (getMap)
import { Store } from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = null;
class UnclaimedGamesStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = UnclaimedGamesStore.prototype;
prototype["getMap"] = function getMap() {
return c0;
};
prototype["getUnclaimedGameIdsForGuild"] = function getUnclaimedGameIdsForGuild(arg0) {
let items;
if (c0 != null) {
items = tmp[arg0];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
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) {
2026-07-20 16:05:17 +00:00
items = [];
}
2026-07-29 08:29:29 +00:00
return items.length > 0;
});
}
};
UnclaimedGamesStore.displayName = "UnclaimedGamesStore";
const unclaimedGamesStore = new UnclaimedGamesStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
LOGOUT: function handleLogout() {
2026-07-29 08:29:29 +00:00
let c0 = null;
2026-07-20 16:05:17 +00:00
},
UNCLAIMED_GAMES_FETCH_SUCCESS: function handleFetchSuccess(guildIdToGameIds) {
guildIdToGameIds = guildIdToGameIds.guildIdToGameIds;
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/game_claim/UnclaimedGamesStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default unclaimedGamesStore;