decord/source/modules/game_profile/GameProfileStore.tsx

131 lines
4 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 9279
// Function ID: 9280
2026-07-29 08:29:29 +00:00
// Name: getSimilarGames
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-08 06:10:11 +00:00
// Module 9279 (getSimilarGames)
2026-07-29 08:29:29 +00:00
import { Store } from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let closure_0 = {};
let closure_1 = {};
let closure_2 = {};
let closure_3 = {};
let closure_4 = {};
2026-07-20 16:05:17 +00:00
let closure_5 = {};
let closure_6 = {};
2026-07-29 08:29:29 +00:00
let c7 = null;
class GameProfileStore extends Store {
}
const prototype = GameProfileStore.prototype;
prototype["getSimilarGames"] = function getSimilarGames(arg0) {
return table[arg0];
};
prototype["getShopCollectionSkuIds"] = function getShopCollectionSkuIds(arg0) {
return table2[arg0];
};
prototype["hasShopCollectionBeenFetched"] = function hasShopCollectionBeenFetched(arg0) {
let flag = table3[arg0];
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return flag;
};
prototype["isShopCollectionFetching"] = function isShopCollectionFetching(arg0) {
let flag = table4[arg0];
if (flag == null) {
flag = false;
}
return flag;
};
prototype["getAnnouncements"] = function getAnnouncements(arg0) {
return table5[arg0];
};
prototype["hasAnnouncementsBeenFetched"] = function hasAnnouncementsBeenFetched(arg0) {
let flag = table6[arg0];
if (flag == null) {
flag = false;
}
return flag;
};
prototype["isAnnouncementsFetching"] = function isAnnouncementsFetching(arg0) {
let flag = table7[arg0];
if (flag == null) {
flag = false;
}
return flag;
};
prototype["getPendingReturn"] = function getPendingReturn() {
return c7;
};
GameProfileStore.displayName = "GameProfileStore";
const gameProfileStore = new GameProfileStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS: function handleGetSimilarGamesSuccess(gameId) {
2026-07-29 08:29:29 +00:00
closure_0[gameId.gameId] = gameId.games;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_GET_SHOP_COLLECTION_START: function handleGetShopCollectionStart(collectionId) {
2026-07-29 08:29:29 +00:00
closure_3[collectionId.collectionId] = true;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS: function handleGetShopCollectionSuccess(collectionId) {
collectionId = collectionId.collectionId;
2026-07-29 08:29:29 +00:00
closure_1[collectionId] = collectionId.skuIds;
closure_2[collectionId] = true;
closure_3[collectionId] = false;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_GET_SHOP_COLLECTION_ERROR: function handleGetShopCollectionError(collectionId) {
collectionId = collectionId.collectionId;
2026-07-29 08:29:29 +00:00
closure_2[collectionId] = true;
closure_3[collectionId] = false;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_GET_ANNOUNCEMENTS_START: function handleGetAnnouncementsStart(gameId) {
2026-07-29 08:29:29 +00:00
closure_6[gameId.gameId] = true;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS: function handleGetAnnouncementsSuccess(gameId) {
gameId = gameId.gameId;
2026-07-29 08:29:29 +00:00
closure_4[gameId] = { messages: gameId.messages, channelId: gameId.channelId, guildId: gameId.guildId };
closure_5[gameId] = true;
closure_6[gameId] = false;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR: function handleGetAnnouncementsError(gameId) {
gameId = gameId.gameId;
2026-07-29 08:29:29 +00:00
closure_5[gameId] = true;
closure_6[gameId] = false;
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_SET_PENDING_RETURN: function handleSetPendingReturn(arg0) {
let channelId;
let gameId;
let initialScrollOffset;
({ gameId, channelId, initialScrollOffset } = arg0);
gameId = undefined;
2026-07-29 08:29:29 +00:00
if (_null != null) {
2026-07-20 16:05:17 +00:00
gameId = _null.gameId;
}
if (gameId === gameId) {
channelId = undefined;
2026-07-29 08:29:29 +00:00
if (_null != null) {
2026-07-20 16:05:17 +00:00
channelId = _null.channelId;
}
if (channelId === channelId) {
initialScrollOffset = undefined;
2026-07-29 08:29:29 +00:00
if (_null != null) {
2026-07-20 16:05:17 +00:00
initialScrollOffset = _null.initialScrollOffset;
}
if (initialScrollOffset === initialScrollOffset) {
return false;
}
}
}
2026-07-23 10:11:24 +00:00
_null = { gameId, channelId, initialScrollOffset };
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_CLEAR_PENDING_RETURN: function handleClearPendingReturn(arg0) {
if (null != _null) {
if (_null.gameId === tmp) {
2026-07-23 10:11:24 +00:00
_null = null;
2026-07-20 16:05:17 +00:00
}
}
return false;
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/game_profile/GameProfileStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default gameProfileStore;