41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
// Module ID: 6980
|
|
// Function ID: 6981
|
|
// Name: CollectiblesDebugStore
|
|
// Dependencies: [570, 2]
|
|
// Exports: addDebugLog
|
|
|
|
// Module 6980 (CollectiblesDebugStore)
|
|
import module_570 from "module_570" /* 570 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const useCollectiblesDebugStore = module_570.create((arg0) => {
|
|
let closure_0 = arg0;
|
|
let obj = {
|
|
logs: [],
|
|
addLog(arg0) {
|
|
closure_0 = arg0;
|
|
return closure_0((logs) => {
|
|
let items;
|
|
const obj = { logs: items };
|
|
items = [...logs.logs];
|
|
const date = new Date();
|
|
const str = date.toISOString();
|
|
items[tmp] = "[" + str.split("T")[0] + "] " + closure_0;
|
|
return obj;
|
|
});
|
|
},
|
|
clearLogs() {
|
|
return closure_0({ logs: [] });
|
|
}
|
|
};
|
|
return obj;
|
|
});
|
|
const result = size.fileFinishedImporting("modules/collectibles/CollectiblesDebugStore.tsx");
|
|
|
|
export { useCollectiblesDebugStore };
|
|
export const addDebugLog = function addDebugLog(arg0) {
|
|
const date = new Date();
|
|
const toLocaleTimeStringResult = date.toLocaleTimeString("en-US", { hour12: false });
|
|
const state = obj.getState();
|
|
state.addLog("[" + toLocaleTimeStringResult + "] " + arg0);
|
|
};
|