decord/source/modules/quests/lib/getQuestLogger.tsx

40 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7497
// Function ID: 7498
2026-07-20 16:05:17 +00:00
// Name: getQuestLogger
2026-07-29 08:29:29 +00:00
// Dependencies: [706, 505, 3, 2]
2026-07-20 16:05:17 +00:00
// Exports: getQuestLogger
2026-08-24 06:08:38 +00:00
// Module 7497 (getQuestLogger)
import timestampDefault from "timestamp" /* 3 */;
import closure_2 from "refreshSourceMapCookie" /* 706 */;
import { NOOP } from "sum" /* 505 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/quests/lib/getQuestLogger.tsx");
2026-07-23 10:11:24 +00:00
export const getQuestLogger = function getQuestLogger(getQuestLogger) {
let obj = getQuestLogger;
if (getQuestLogger === undefined) {
2026-07-20 16:05:17 +00:00
obj = {};
}
({ quest, location: _location } = obj);
2026-07-23 10:11:24 +00:00
isLoggingQuestEvents = isLoggingQuestEvents.isLoggingQuestEvents;
2026-07-20 16:05:17 +00:00
let questName;
2026-07-29 08:29:29 +00:00
if (quest != null) {
2026-07-20 16:05:17 +00:00
questName = quest.config.messages.questName;
}
let str = "";
let str2 = "";
if (null != _location) {
const _HermesInternal = HermesInternal;
str2 = "-" + _location;
}
if (null != questName) {
const _HermesInternal2 = HermesInternal;
str = "-" + questName + ")";
}
2026-08-24 06:08:38 +00:00
let tmp4 = timestampDefault;
2026-07-20 16:05:17 +00:00
tmp4 = new tmp4("QuestLogger" + str2 + str);
obj = { log: isLoggingQuestEvents ? tmp4.log : NOOP, warn: isLoggingQuestEvents ? tmp4.warn : NOOP, error: isLoggingQuestEvents ? tmp4.error : NOOP, info: isLoggingQuestEvents ? tmp4.info : NOOP, verbose: isLoggingQuestEvents ? tmp4.verbose : NOOP, trace: isLoggingQuestEvents ? tmp4.trace : NOOP };
return obj;
};