decord/source/modules/quests/lib/getQuestLogger.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 7709
// Function ID: 7710
// Name: getQuestLogger
// Dependencies: [1347, 1085, 3, 2]
// Exports: getQuestLogger
// Module 7709 (getQuestLogger)
import timestampDefault from "timestamp" /* 3 */;
import closure_2 from "refreshSourceMapCookie" /* 1347 */;
import { NOOP } from "sum" /* 1085 */;
const result = require("set").fileFinishedImporting("modules/quests/lib/getQuestLogger.tsx");
export const getQuestLogger = function getQuestLogger(getQuestLogger) {
let obj = getQuestLogger;
if (getQuestLogger === undefined) {
obj = {};
}
({ quest, location: _location } = obj);
isLoggingQuestEvents = isLoggingQuestEvents.isLoggingQuestEvents;
let questName;
if (quest != null) {
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 + ")";
}
let tmp4 = timestampDefault;
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;
};