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

41 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 6947
// Function ID: 55541
2026-07-20 16:05:17 +00:00
// Name: getQuestLogger
2026-07-23 10:11:24 +00:00
// Dependencies: [683, 482, 3, 2]
2026-07-20 16:05:17 +00:00
// Exports: getQuestLogger
2026-07-24 07:16:23 +00:00
// Module 6947 (getQuestLogger)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { NOOP } from "sum";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const result = require("timestamp").fileFinishedImporting("modules/quests/lib/getQuestLogger.tsx");
export const getQuestLogger = function getQuestLogger(getQuestLogger) {
2026-07-20 16:05:17 +00:00
let _location;
let quest;
2026-07-23 10:11:24 +00:00
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;
if (null != quest) {
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-07-23 10:11:24 +00:00
let tmp4 = importDefault(3);
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;
};