first commit
This commit is contained in:
2
assets/app-builtin/.app-builtin.md
Normal file
2
assets/app-builtin/.app-builtin.md
Normal file
@@ -0,0 +1,2 @@
|
||||
1、存储内置功能的文件夹
|
||||
2、不可删除此文件夹
|
||||
12
assets/app-builtin/app-admin.meta
Normal file
12
assets/app-builtin/app-admin.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "95e76f7f-cbcf-4726-87bf-efbf19fb0e33",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"isBundle": true,
|
||||
"bundleConfigID": "auto_398Ij6Mc1B2Y7sW3e6BgFC"
|
||||
}
|
||||
}
|
||||
2
assets/app-builtin/app-admin/.app-admin.md
Normal file
2
assets/app-builtin/app-admin/.app-admin.md
Normal file
@@ -0,0 +1,2 @@
|
||||
1、一些配置类的资产(框架自动维护)
|
||||
2、不可删除此文件夹
|
||||
41
assets/app-builtin/app-admin/executor.ts
Normal file
41
assets/app-builtin/app-admin/executor.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/* eslint-disable */
|
||||
import { Component,director,Director } from 'cc';
|
||||
import { app } from '../../app/app';
|
||||
import { EDITOR,EDITOR_NOT_IN_PREVIEW } from 'cc/env';
|
||||
|
||||
export type IReadOnly<T> = { readonly [P in keyof T]: T[P] extends Function ? T[P] : (T[P] extends Object ? IReadOnly<T[P]> : T[P]); };
|
||||
|
||||
export type IViewName = "PageMain"
|
||||
export type IViewNames = IViewName[]
|
||||
export type IMiniViewName = "never"
|
||||
export type IMiniViewNames = IMiniViewName[]
|
||||
export type IMusicName = "music/bgm"
|
||||
export type IMusicNames = IMusicName[]
|
||||
export type IEffectName = "effect/catch"|"effect/click"|"effect/gold_rain"|"effect/start"
|
||||
export type IEffectNames = IEffectName[]
|
||||
|
||||
import EventManager from '../../../extensions/app/assets/manager/event/EventManager'
|
||||
import LoaderManager from '../../../extensions/app/assets/manager/loader/LoaderManager'
|
||||
import SoundManager from '../../../extensions/app/assets/manager/sound/SoundManager'
|
||||
import TimerManager from '../../../extensions/app/assets/manager/timer/TimerManager'
|
||||
import UIManager from '../../../extensions/app/assets/manager/ui/UIManager'
|
||||
export type IApp = {
|
||||
Controller: {},
|
||||
controller: {},
|
||||
Manager: {Event:Omit<typeof EventManager,keyof Component>,Loader:Omit<typeof LoaderManager,keyof Component>,Sound:Omit<typeof SoundManager,keyof Component>,Timer:Omit<typeof TimerManager,keyof Component>,UI:Omit<typeof UIManager,keyof Component>},
|
||||
manager: {event:Omit<EventManager,keyof Component>,loader:Omit<LoaderManager,keyof Component>,sound:Omit<SoundManager<IEffectName,IMusicName>,keyof Component>,timer:Omit<TimerManager,keyof Component>,ui:Omit<UIManager<IViewName,IMiniViewName>,keyof Component>},
|
||||
data: {},
|
||||
config: {}
|
||||
store: {}
|
||||
}
|
||||
|
||||
function init(){
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.config, {})
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.data, {})
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.store, {})
|
||||
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.Controller, {})
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.controller, {})
|
||||
}
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) director.on(Director.EVENT_RESET,init)
|
||||
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) init()
|
||||
9
assets/app-builtin/app-admin/executor.ts.meta
Normal file
9
assets/app-builtin/app-admin/executor.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "f187b639-0be1-421c-ac96-f3891a260321",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Reference in New Issue
Block a user