HumanBreak/packages-user/entry-data/src/index.ts

26 lines
738 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createMota } from './mota';
import { create } from './create';
import { patchAll } from '@user/data-fallback';
import { loading } from '@user/data-base';
import { Patch } from '@motajs/legacy-common';
import { logger } from '@motajs/common';
export function createData() {
createMota();
patchAll();
create();
if (main.replayChecking) {
logger.log(
`如果需要调试录像验证,请在 script/build-game.ts 中将 DEBUG_REPLAY 设为 true` +
`此时录像验证中可以看到完整正确的报错栈。调试完毕后,记得将它重新设为 false`
);
}
loading.once('coreInit', () => {
Patch.patchAll();
});
}
export * from './mota';