mirror of
https://github.com/motajs/template.git
synced 2026-11-19 02:34:30 +08:00
refactor: 数据端用户结构
This commit is contained in:
1 parent
0a133058ca
commit
a0e402728e
41 files changed
+901
-100
No files matched your search
+5
-1
@@ -1,6 +1,7 @@
|
||||
import { WebLoadStarter } from '@motajs/loader';
|
||||
import { createClientCore } from './client/entry';
|
||||
import { IClientCore } from '@user/client-modules';
|
||||
import { LoadSceneUI } from '../packages-user/client-modules/src/ui/load';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -8,5 +9,8 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
const client = await createClientCore(new WebLoadStarter());
|
||||
const client = createClientCore(new WebLoadStarter());
|
||||
|
||||
// 游戏副作用启动
|
||||
window.mainClient = client;
|
||||
client.sceneController.open(LoadSceneUI, {});
|
||||
Reference in new issue
Block a user