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

37 lines
951 B
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 11998
// Function ID: 11999
2026-07-20 16:05:17 +00:00
// Name: useGameServerFeaturedGameNames
2026-08-13 07:00:46 +00:00
// Dependencies: [4231, 5967, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 07:00:46 +00:00
// Module 11998 (useGameServerFeaturedGameNames)
2026-07-29 08:29:29 +00:00
import str11 from "str11";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let obj1;
({ MINECRAFT_GAME_ID: obj1, HYTALE_GAME_ID: c3 } = require("str11"));
2026-07-30 10:14:41 +00:00
const result = require("set").fileFinishedImporting("modules/game_server/hooks/useGameServerFeaturedGameNames.tsx");
2026-07-20 16:05:17 +00:00
export default function useGameServerFeaturedGameNames() {
2026-08-13 07:00:46 +00:00
let obj = require(5967) /* importDefaultResult1 */;
2026-07-20 16:05:17 +00:00
const data = obj.useGame(closure_2).data;
2026-08-13 07:00:46 +00:00
const data2 = require(5967) /* 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;
};