decord/source/modules/game_server/hooks/useGameServerFeaturedGameNames.tsx

37 lines
981 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11795
// Function ID: 11796
2026-07-20 16:05:17 +00:00
// Name: useGameServerFeaturedGameNames
2026-08-24 06:08:38 +00:00
// Dependencies: [4267, 5383, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11795 (useGameServerFeaturedGameNames)
import set from "set" /* 2 */;
import importDefaultResult1 from "importDefaultResult1" /* 5383 */;
import str11 from "str11" /* 4267 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
({ MINECRAFT_GAME_ID: obj1, HYTALE_GAME_ID: c3 } = str11);
const result = set.fileFinishedImporting("modules/game_server/hooks/useGameServerFeaturedGameNames.tsx");
2026-07-20 16:05:17 +00:00
export default function useGameServerFeaturedGameNames() {
2026-08-24 06:08:38 +00:00
let obj = importDefaultResult1;
2026-07-20 16:05:17 +00:00
const data = obj.useGame(closure_2).data;
2026-08-24 06:08:38 +00:00
const data2 = importDefaultResult1.useGame(closure_3).data;
2026-07-29 08:29:29 +00:00
let str;
if (data != null) {
str = data.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "Minecraft";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { gameName: str, gameName2: null };
let str2;
if (data2 != null) {
str2 = data2.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str2 == null) {
str2 = "Hytale";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = str2;
2026-07-20 16:05:17 +00:00
return obj;
};