decord/source/modules/game_profile/GameProfileStore.tsx

131 lines
4 KiB
TypeScript
Raw Normal View History

// Module ID: 8752
// Function ID: 8753
// Name: GameProfileStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 8752 (GameProfileStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
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;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class GameProfileStore extends Store {
}
const prototype = GameProfileStore.prototype;
prototype["getSimilarGames"] = function getSimilarGames(arg0) {
return closure_0[arg0];
2026-07-29 08:29:29 +00:00
};
prototype["getShopCollectionSkuIds"] = function getShopCollectionSkuIds(arg0) {
return closure_1[arg0];
2026-07-29 08:29:29 +00:00
};
prototype["hasShopCollectionBeenFetched"] = function hasShopCollectionBeenFetched(arg0) {
let flag = closure_2[arg0];
2026-07-29 08:29:29 +00:00
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 = closure_3[arg0];
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
return flag;
};
prototype["getAnnouncements"] = function getAnnouncements(arg0) {
return closure_4[arg0];
2026-07-29 08:29:29 +00:00
};
prototype["hasAnnouncementsBeenFetched"] = function hasAnnouncementsBeenFetched(arg0) {
let flag = closure_5[arg0];
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
return flag;
};
prototype["isAnnouncementsFetching"] = function isAnnouncementsFetching(arg0) {
let flag = closure_6[arg0];
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
return flag;
};
prototype["getPendingReturn"] = function getPendingReturn() {
return c7;
};
GameProfileStore.displayName = "GameProfileStore";
const gameProfileStore = new GameProfileStore(DispatcherDefault, {
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) {
({ gameId, channelId, initialScrollOffset } = arg0);
let gameId1;
2026-07-29 08:29:29 +00:00
if (_null != null) {
gameId1 = _null.gameId;
2026-07-20 16:05:17 +00:00
}
if (gameId1 === gameId) {
let channelId1;
2026-07-29 08:29:29 +00:00
if (_null != null) {
channelId1 = _null.channelId;
2026-07-20 16:05:17 +00:00
}
if (channelId1 === channelId) {
let initialScrollOffset1;
2026-07-29 08:29:29 +00:00
if (_null != null) {
initialScrollOffset1 = _null.initialScrollOffset;
2026-07-20 16:05:17 +00:00
}
if (initialScrollOffset1 === initialScrollOffset) {
2026-07-20 16:05:17 +00:00
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;
}
});
const size = fn(2);
const result = size.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;