Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
// Module ID: 7295
|
|
// Function ID: 7296
|
|
// Name: getQuestLogger
|
|
// Dependencies: [1346, 1085, 3, 2]
|
|
// Exports: getQuestLogger
|
|
|
|
// Module 7295 (getQuestLogger)
|
|
import LoggerDefault from "Logger" /* 3 */;
|
|
import DeveloperOptionsStore from "DeveloperOptionsStore" /* 1346 */;
|
|
|
|
const NOOP = fn(1085).NOOP;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/quests/lib/getQuestLogger.tsx");
|
|
|
|
export const getQuestLogger = function getQuestLogger(arg0) {
|
|
let obj = arg0;
|
|
if (arg0 === undefined) {
|
|
obj = {};
|
|
}
|
|
({ quest, location: _location } = obj);
|
|
const isLoggingQuestEvents = DeveloperOptionsStore.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 + ")";
|
|
}
|
|
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 };
|
|
};
|