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

43 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 7391
// Function ID: 7392
2026-07-20 16:05:17 +00:00
// Name: getQuestLogger
2026-10-09 10:00:15 +00:00
// Dependencies: [1370, 1096, 3, 2]
2026-07-20 16:05:17 +00:00
// Exports: getQuestLogger
2026-10-09 10:00:15 +00:00
// Module 7391 (getQuestLogger)
import LoggerDefault from "Logger" /* 3 */;
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1096 */;
2026-10-09 10:00:15 +00:00
import DeveloperOptionsStore from "DeveloperOptionsStore" /* 1370 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
const NOOP = Constants.NOOP;
const result = size.fileFinishedImporting("modules/quests/lib/getQuestLogger.tsx");
2026-07-23 10:11:24 +00:00
export const getQuestLogger = function getQuestLogger(arg0) {
2026-10-03 08:58:59 +00:00
let _location;
let quest;
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 + ")";
}
2026-10-03 08:58:59 +00:00
const tmp4 = LoggerDefault;
const tmp42 = new tmp4("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
};