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

39 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 7811
// Function ID: 7812
2026-07-20 16:05:17 +00:00
// Name: getQuestLogger
// Dependencies: [1347, 1085, 3, 2]
2026-07-20 16:05:17 +00:00
// Exports: getQuestLogger
// Module 7811 (getQuestLogger)
import LoggerDefault from "Logger" /* 3 */;
import DeveloperOptionsStore from "DeveloperOptionsStore" /* 1347 */;
2026-07-20 16:05:17 +00:00
const NOOP = fn(1085).NOOP;
const size = fn(2);
const result = size.fileFinishedImporting("modules/quests/lib/getQuestLogger.tsx");
2026-07-23 10:11:24 +00:00
export const getQuestLogger = function getQuestLogger(arg0) {
let obj = arg0;
if (arg0 === undefined) {
2026-07-20 16:05:17 +00:00
obj = {};
}
({ quest, location: _location } = obj);
const isLoggingQuestEvents = DeveloperOptionsStore.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 + ")";
}
const tmp42 = new LoggerDefault("QuestLogger" + str2 + str);
return { log: isLoggingQuestEvents ? tmp42.log : NOOP, warn: isLoggingQuestEvents ? tmp42.warn : NOOP, error: isLoggingQuestEvents ? tmp42.error : NOOP, info: isLoggingQuestEvents ? tmp42.info : NOOP, verbose: isLoggingQuestEvents ? tmp42.verbose : NOOP, trace: isLoggingQuestEvents ? tmp42.trace : NOOP };
2026-07-20 16:05:17 +00:00
};