├── .gitignore ├── README.md └── client ├── .creator └── asset-template │ └── typescript │ ├── Custom Script Template Help Documentation.url │ ├── CustomComponent │ └── CustomScript ├── .gitignore ├── assets ├── launch.meta ├── launch │ ├── BaseLoader.ts │ ├── BaseLoader.ts.meta │ ├── imgs.meta │ ├── imgs │ │ ├── comp_dl_jdt.png │ │ ├── comp_dl_jdt.png.meta │ │ ├── comp_dl_jdtd.png │ │ ├── comp_dl_jdtd.png.meta │ │ ├── gameStart.plist │ │ ├── gameStart.plist.meta │ │ ├── gameStart.png │ │ ├── gameStart.png.meta │ │ ├── glow_blue3.png │ │ └── glow_blue3.png.meta │ ├── lauch.ts │ ├── lauch.ts.meta │ ├── launch.scene │ └── launch.scene.meta ├── modules.meta ├── modules │ ├── common.meta │ ├── common │ │ └── config.meta │ ├── hall.meta │ ├── hall │ │ ├── hallScene.scene │ │ ├── hallScene.scene.meta │ │ ├── imgs.meta │ │ └── imgs │ │ │ ├── homeBox01.png │ │ │ ├── homeBox01.png.meta │ │ │ ├── homeBox02.png │ │ │ ├── homeBox02.png.meta │ │ │ ├── homeBtnSetting.png │ │ │ ├── homeBtnSetting.png.meta │ │ │ ├── homeBtnStart.png │ │ │ ├── homeBtnStart.png.meta │ │ │ ├── homeFont01.png │ │ │ ├── homeFont01.png.meta │ │ │ ├── homeIconArrow.png │ │ │ ├── homeIconArrow.png.meta │ │ │ ├── homeIconBest.png │ │ │ ├── homeIconBest.png.meta │ │ │ ├── homeIconMap01.png │ │ │ ├── homeIconMap01.png.meta │ │ │ ├── logo.png │ │ │ └── logo.png.meta │ ├── test.meta │ └── test │ │ ├── scene.scene │ │ ├── scene.scene.meta │ │ ├── skillIcon.meta │ │ ├── skillIcon │ │ ├── arrContinuous.png │ │ ├── arrContinuous.png.meta │ │ ├── arrowDouble.png │ │ ├── arrowDouble.png.meta │ │ ├── arrowFire.png │ │ ├── arrowFire.png.meta │ │ ├── arrowLaunch.png │ │ ├── arrowLaunch.png.meta │ │ ├── arrowLightning.png │ │ ├── arrowLightning.png.meta │ │ ├── arrowPenetrate.png │ │ ├── arrowPenetrate.png.meta │ │ ├── arrowRebound.png │ │ ├── arrowRebound.png.meta │ │ ├── arrowReverse.png │ │ ├── arrowReverse.png.meta │ │ ├── arrowSide.png │ │ ├── arrowSide.png.meta │ │ ├── arrowUmbrella.png │ │ ├── arrowUmbrella.png.meta │ │ ├── arrowice.png │ │ ├── arrowice.png.meta │ │ ├── auto-atlas.pac │ │ ├── auto-atlas.pac.meta │ │ ├── bloodthirsty.png │ │ ├── bloodthirsty.png.meta │ │ ├── moveSpeed.png │ │ ├── moveSpeed.png.meta │ │ ├── raiseAttack01.png │ │ ├── raiseAttack01.png.meta │ │ ├── raiseAttack02.png │ │ ├── raiseAttack02.png.meta │ │ ├── raiseAttackSpeed01.png │ │ ├── raiseAttackSpeed01.png.meta │ │ ├── raiseAttackSpeed02.png │ │ ├── raiseAttackSpeed02.png.meta │ │ ├── raiseCriticalHitDamage01.png │ │ ├── raiseCriticalHitDamage01.png.meta │ │ ├── raiseCriticalHitDamage02.png │ │ ├── raiseCriticalHitDamage02.png.meta │ │ ├── raiseDodge.png │ │ ├── raiseDodge.png.meta │ │ ├── raiseHpLimit.png │ │ ├── raiseHpLimit.png.meta │ │ ├── recovery.png │ │ └── recovery.png.meta │ │ ├── ui.meta │ │ └── ui │ │ ├── TableViewDrawCallTest.prefab │ │ ├── TableViewDrawCallTest.prefab.meta │ │ ├── item.prefab │ │ └── item.prefab.meta ├── resources.meta ├── resources │ ├── project.manifest │ ├── project.manifest.meta │ ├── proto.meta │ ├── proto │ │ ├── battle.proto │ │ ├── battle.proto.meta │ │ ├── common.proto │ │ ├── common.proto.meta │ │ ├── email.proto │ │ ├── email.proto.meta │ │ ├── game.proto │ │ ├── game.proto.meta │ │ ├── hero.proto │ │ ├── hero.proto.meta │ │ ├── login_activity.proto │ │ ├── login_activity.proto.meta │ │ ├── normal.proto │ │ └── normal.proto.meta │ ├── version.json │ └── version.json.meta ├── scripts.meta └── scripts │ ├── base.meta │ ├── base │ ├── core.meta │ ├── core │ │ ├── AOPManager.ts │ │ ├── AOPManager.ts.meta │ │ ├── ResLoader.ts │ │ ├── ResLoader.ts.meta │ │ ├── SceneMgr.ts │ │ ├── SceneMgr.ts.meta │ │ ├── ServiceMgr.ts │ │ ├── ServiceMgr.ts.meta │ │ ├── SoundMgr.ts │ │ ├── SoundMgr.ts.meta │ │ ├── StoreMgr.ts │ │ ├── StoreMgr.ts.meta │ │ ├── UIMgr.ts │ │ ├── UIMgr.ts.meta │ │ ├── audio.meta │ │ ├── audio │ │ │ ├── AudioEngine.ts │ │ │ ├── AudioEngine.ts.meta │ │ │ ├── AudioSourceBase.ts │ │ │ ├── AudioSourceBase.ts.meta │ │ │ ├── AudioSourceCom.ts │ │ │ ├── AudioSourceCom.ts.meta │ │ │ ├── AudioSourceWX.ts │ │ │ └── AudioSourceWX.ts.meta │ │ ├── index.ts │ │ └── index.ts.meta │ ├── frame.meta │ ├── frame │ │ ├── BaseScene.ts │ │ ├── BaseScene.ts.meta │ │ ├── BaseService.ts │ │ ├── BaseService.ts.meta │ │ ├── BaseUI.ts │ │ ├── BaseUI.ts.meta │ │ ├── BaseView.ts │ │ ├── BaseView.ts.meta │ │ ├── EventDispatcher.ts │ │ ├── EventDispatcher.ts.meta │ │ ├── index.ts │ │ └── index.ts.meta │ ├── gui.meta │ ├── gui │ │ ├── BarItem.ts │ │ ├── BarItem.ts.meta │ │ ├── BarMenu.ts │ │ ├── BarMenu.ts.meta │ │ ├── GridView.ts │ │ ├── GridView.ts.meta │ │ ├── ReDefineTableViewRender.ts │ │ ├── ReDefineTableViewRender.ts.meta │ │ ├── RenderChange.ts │ │ ├── RenderChange.ts.meta │ │ ├── TableView.ts │ │ ├── TableView.ts.meta │ │ ├── TableViewCell.ts │ │ ├── TableViewCell.ts.meta │ │ ├── ToggleView.ts │ │ ├── ToggleView.ts.meta │ │ ├── index.ts │ │ ├── index.ts.meta │ │ ├── urlImageView.ts │ │ └── urlImageView.ts.meta │ ├── localized.meta │ ├── localized │ │ ├── LocalizedConfigJson.ts │ │ ├── LocalizedConfigJson.ts.meta │ │ ├── LocalizedConfigPath.ts │ │ ├── LocalizedConfigPath.ts.meta │ │ ├── LocalizedLabel.ts │ │ ├── LocalizedLabel.ts.meta │ │ ├── LocalizedManager.ts │ │ ├── LocalizedManager.ts.meta │ │ ├── LocalizedSprite.ts │ │ └── LocalizedSprite.ts.meta │ ├── log.meta │ ├── log │ │ ├── LogBattle.ts │ │ ├── LogBattle.ts.meta │ │ ├── LogConsole.ts │ │ ├── LogConsole.ts.meta │ │ ├── LogController.ts │ │ ├── LogController.ts.meta │ │ ├── LogDelegate.ts │ │ ├── LogDelegate.ts.meta │ │ ├── LogLevel.ts │ │ ├── LogLevel.ts.meta │ │ ├── log.ts │ │ └── log.ts.meta │ ├── net.meta │ ├── net │ │ ├── Network.ts │ │ ├── Network.ts.meta │ │ ├── PbCmd.ts │ │ ├── PbCmd.ts.meta │ │ ├── ProtoRegister.ts │ │ ├── ProtoRegister.ts.meta │ │ ├── bytebuffer.js │ │ ├── bytebuffer.js.meta │ │ ├── long.js │ │ ├── long.js.meta │ │ ├── netConfig.ts │ │ ├── netConfig.ts.meta │ │ ├── protobuf.js │ │ └── protobuf.js.meta │ ├── platform.meta │ ├── platform │ │ ├── adsdk.meta │ │ ├── adsdk │ │ │ ├── ADBase.ts │ │ │ ├── ADBase.ts.meta │ │ │ ├── AdInterface.ts │ │ │ ├── AdInterface.ts.meta │ │ │ ├── mini.meta │ │ │ ├── mini │ │ │ │ ├── ADByte.ts │ │ │ │ ├── ADByte.ts.meta │ │ │ │ ├── ADMini.ts │ │ │ │ ├── ADMini.ts.meta │ │ │ │ ├── ADQQ.ts │ │ │ │ ├── ADQQ.ts.meta │ │ │ │ ├── ADWx.ts │ │ │ │ └── ADWx.ts.meta │ │ │ ├── mmy.meta │ │ │ ├── mmy │ │ │ │ ├── MMYAndroid.ts │ │ │ │ └── MMYAndroid.ts.meta │ │ │ ├── navite.meta │ │ │ ├── navite │ │ │ │ ├── ADAndroid.ts │ │ │ │ ├── ADAndroid.ts.meta │ │ │ │ ├── ADIOS.ts │ │ │ │ └── ADIOS.ts.meta │ │ │ ├── quick.meta │ │ │ └── quick │ │ │ │ ├── ADMeizu.ts │ │ │ │ ├── ADMeizu.ts.meta │ │ │ │ ├── ADQuick.ts │ │ │ │ └── ADQuick.ts.meta │ │ ├── analytics.meta │ │ ├── analytics │ │ │ ├── AnalyticsBase.ts │ │ │ ├── AnalyticsBase.ts.meta │ │ │ ├── AnalyticsInterface.ts │ │ │ ├── AnalyticsInterface.ts.meta │ │ │ ├── talking.meta │ │ │ ├── talking │ │ │ │ ├── TalkAndroid.ts │ │ │ │ ├── TalkAndroid.ts.meta │ │ │ │ ├── TalkIOS.ts │ │ │ │ └── TalkIOS.ts.meta │ │ │ ├── umeng.meta │ │ │ └── umeng │ │ │ │ ├── UMengH5.ts │ │ │ │ ├── UMengH5.ts.meta │ │ │ │ ├── UMengMini.ts │ │ │ │ ├── UMengMini.ts.meta │ │ │ │ ├── UMengWeb.ts │ │ │ │ └── UMengWeb.ts.meta │ │ ├── channel.meta │ │ ├── login.meta │ │ ├── login │ │ │ ├── LoginAndroid.ts │ │ │ ├── LoginAndroid.ts.meta │ │ │ ├── LoginBase.ts │ │ │ ├── LoginBase.ts.meta │ │ │ ├── LoginIOS.ts │ │ │ └── LoginIOS.ts.meta │ │ ├── minigame.meta │ │ ├── minigame │ │ │ ├── platformByte.ts │ │ │ ├── platformByte.ts.meta │ │ │ ├── platformQQ.ts │ │ │ ├── platformQQ.ts.meta │ │ │ ├── platformWx.ts │ │ │ └── platformWx.ts.meta │ │ ├── platform.ts │ │ ├── platform.ts.meta │ │ ├── platformAndroid.ts │ │ ├── platformAndroid.ts.meta │ │ ├── platformBase.ts │ │ ├── platformBase.ts.meta │ │ ├── platformH5.ts │ │ ├── platformH5.ts.meta │ │ ├── platformIOS.ts │ │ ├── platformIOS.ts.meta │ │ ├── platformWeb.ts │ │ ├── platformWeb.ts.meta │ │ ├── quickgame.meta │ │ └── quickgame │ │ │ ├── platformMZ.ts │ │ │ └── platformMZ.ts.meta │ ├── update.meta │ ├── update │ │ ├── UpdateManager.ts │ │ └── UpdateManager.ts.meta │ ├── utils.meta │ └── utils │ │ ├── autonode.meta │ │ ├── autonode │ │ ├── AutoNode.ts │ │ └── AutoNode.ts.meta │ │ ├── error.meta │ │ ├── helper.meta │ │ ├── helper │ │ ├── BgAdapter.ts │ │ ├── BgAdapter.ts.meta │ │ ├── SafeArea.ts │ │ ├── SafeArea.ts.meta │ │ ├── UI3DMesh.ts │ │ └── UI3DMesh.ts.meta │ │ ├── mesh.meta │ │ ├── mesh │ │ ├── MergeMesh.ts │ │ ├── MergeMesh.ts.meta │ │ ├── MultiMeshRender.ts │ │ ├── MultiMeshRender.ts.meta │ │ ├── MultiSkinnedMeshRender.ts │ │ ├── MultiSkinnedMeshRender.ts.meta │ │ ├── MultiTexure.ts │ │ └── MultiTexure.ts.meta │ │ ├── util.meta │ │ ├── util │ │ ├── FileUtils.ts │ │ ├── FileUtils.ts.meta │ │ ├── HttpUtils.ts │ │ ├── HttpUtils.ts.meta │ │ ├── S2RpnUtils.ts │ │ ├── S2RpnUtils.ts.meta │ │ ├── Store.ts │ │ ├── Store.ts.meta │ │ ├── TimeUtils.ts │ │ ├── TimeUtils.ts.meta │ │ ├── TouchUtils.ts │ │ └── TouchUtils.ts.meta │ │ ├── utils.ts │ │ ├── utils.ts.meta │ │ ├── view.meta │ │ └── view │ │ ├── AlertTips.ts │ │ ├── AlertTips.ts.meta │ │ ├── AlterTipsWrap.ts │ │ ├── AlterTipsWrap.ts.meta │ │ ├── AutoView.ts │ │ ├── AutoView.ts.meta │ │ ├── LoadingView.ts │ │ ├── LoadingView.ts.meta │ │ ├── LoadingViewWrap.ts │ │ ├── LoadingViewWrap.ts.meta │ │ ├── MsgBox.ts │ │ ├── MsgBox.ts.meta │ │ ├── MsgBoxWrap.ts │ │ └── MsgBoxWrap.ts.meta │ ├── config.meta │ ├── config │ ├── Env.ts │ ├── Env.ts.meta │ ├── NetworkConfig.ts │ ├── NetworkConfig.ts.meta │ ├── PlatformConfig.ts │ ├── PlatformConfig.ts.meta │ ├── error.meta │ └── error │ │ ├── ErrorCodeMap.ts │ │ ├── ErrorCodeMap.ts.meta │ │ ├── ErrorCodeType.ts │ │ └── ErrorCodeType.ts.meta │ ├── modules.meta │ ├── modules │ ├── battleview.meta │ ├── battleview │ │ ├── GameService.ts │ │ ├── GameService.ts.meta │ │ ├── common.meta │ │ ├── common │ │ │ ├── BattleBaseComponent.ts │ │ │ └── BattleBaseComponent.ts.meta │ │ ├── event.meta │ │ ├── event │ │ │ ├── BattleLauchEvent.ts │ │ │ └── BattleLauchEvent.ts.meta │ │ ├── lauch.meta │ │ ├── lauch │ │ │ ├── BattleLauch.ts │ │ │ └── BattleLauch.ts.meta │ │ ├── model.meta │ │ ├── model │ │ │ ├── JsonDefineModel.ts │ │ │ ├── JsonDefineModel.ts.meta │ │ │ ├── LauchModel.ts │ │ │ ├── LauchModel.ts.meta │ │ │ ├── modelDefine.ts │ │ │ └── modelDefine.ts.meta │ │ ├── view.meta │ │ └── view │ │ │ ├── loading.meta │ │ │ ├── loading │ │ │ ├── LoadingBattleView.ts │ │ │ └── LoadingBattleView.ts.meta │ │ │ ├── match.meta │ │ │ └── match │ │ │ ├── MatchView.ts │ │ │ └── MatchView.ts.meta │ ├── common.meta │ ├── common │ │ ├── ConfigService.ts │ │ ├── ConfigService.ts.meta │ │ ├── config.meta │ │ └── config │ │ │ ├── ConfigType.ts │ │ │ └── ConfigType.ts.meta │ ├── hall.meta │ ├── hall │ │ ├── HallScene.ts │ │ └── HallScene.ts.meta │ ├── player.meta │ ├── player │ │ ├── PlayerService.ts │ │ └── PlayerService.ts.meta │ ├── test.meta │ └── test │ │ ├── tableview.meta │ │ └── tableview │ │ ├── ListItem.ts │ │ ├── ListItem.ts.meta │ │ ├── TableViewDrawcallTest.ts │ │ └── TableViewDrawcallTest.ts.meta │ ├── world.meta │ └── world │ ├── Analytics.ts │ ├── Analytics.ts.meta │ ├── GameWorld.prefab │ ├── GameWorld.prefab.meta │ ├── GameWorld.ts │ └── GameWorld.ts.meta ├── extensions └── hot-update │ ├── browser.js │ ├── builder │ ├── config.js │ ├── hook.js │ ├── index.js │ ├── localconfig.js │ ├── minigame.js │ ├── navite.js │ ├── utils.js │ └── web.js │ ├── package-lock.json │ └── package.json ├── package-lock.json ├── package.json ├── preview-template ├── LICENSE ├── README.md ├── config.js ├── custom.html ├── index.ejs ├── libs │ ├── css │ │ ├── googlefonts.css │ │ ├── materialdesignicons.min.css │ │ └── vuetify.min.css │ ├── fonts │ │ ├── googlefonts-base.woff2 │ │ ├── materialdesignicons-webfont.eot │ │ ├── materialdesignicons-webfont.ttf │ │ ├── materialdesignicons-webfont.woff │ │ └── materialdesignicons-webfont.woff2 │ └── js │ │ ├── cc-console-utils.js │ │ ├── vue.min.js │ │ └── vuetify.js ├── preview.js └── screenshots │ ├── preview1.gif │ ├── preview2.png │ ├── preview3.png │ ├── preview4.png │ ├── preview5.png │ ├── t1.png │ ├── t2.png │ └── t3.png ├── recast.d.ts ├── settings └── v2 │ └── packages │ ├── builder.json │ ├── cocos-service.json │ ├── device.json │ ├── engine.json │ ├── program.json │ └── project.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | client/temp/ 2 | client/library/ 3 | client/local/ 4 | client/.vscode/ 5 | temp/ 6 | -------------------------------------------------------------------------------- /client/.creator/asset-template/typescript/Custom Script Template Help Documentation.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template -------------------------------------------------------------------------------- /client/.creator/asset-template/typescript/CustomComponent: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-06 18:25:24 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | const { ccclass, property } = cc._decorator; 10 | 11 | @ccclass('<%UnderscoreCaseClassName%>') 12 | export class <%UnderscoreCaseClassName%> extends cc.Component { 13 | start() { 14 | 15 | } 16 | } -------------------------------------------------------------------------------- /client/.creator/asset-template/typescript/CustomScript: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-06 18:25:14 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | const { ccclass, property } = cc._decorator; 10 | 11 | @ccclass('<%UnderscoreCaseClassName%>') 12 | export class <%UnderscoreCaseClassName%>{ 13 | 14 | } -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | #/////////////////////////// 3 | # Cocos Creator 3D Project 4 | #/////////////////////////// 5 | library/ 6 | temp/ 7 | local/ 8 | build/ 9 | profiles/ 10 | native 11 | #////////////////////////// 12 | # NPM 13 | #////////////////////////// 14 | node_modules/ 15 | 16 | #////////////////////////// 17 | # VSCode 18 | #////////////////////////// 19 | .vscode/ 20 | 21 | #////////////////////////// 22 | # WebStorm 23 | #////////////////////////// 24 | .idea/ -------------------------------------------------------------------------------- /client/assets/launch.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "9a1706c4-fbaf-43ee-a7ea-e080de54ba4f", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/launch/BaseLoader.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b0be107e-f3ec-4568-9f1d-bb3c82e25faf", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/launch/imgs.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "742da8db-2690-419f-a12f-498e232b1e22", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/launch/imgs/comp_dl_jdt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/launch/imgs/comp_dl_jdt.png -------------------------------------------------------------------------------- /client/assets/launch/imgs/comp_dl_jdt.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "d9d8f3d2-4578-4ec6-a711-a2b56f9acb12", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "d9d8f3d2-4578-4ec6-a711-a2b56f9acb12@6c48a", 14 | "displayName": "comp_dl_jdt", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "d9d8f3d2-4578-4ec6-a711-a2b56f9acb12" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "d9d8f3d2-4578-4ec6-a711-a2b56f9acb12@f9941", 37 | "displayName": "comp_dl_jdt", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 1, 47 | "trimY": 1, 48 | "width": 970, 49 | "height": 9, 50 | "rawWidth": 972, 51 | "rawHeight": 11, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "d9d8f3d2-4578-4ec6-a711-a2b56f9acb12@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "d9d8f3d2-4578-4ec6-a711-a2b56f9acb12@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/launch/imgs/comp_dl_jdtd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/launch/imgs/comp_dl_jdtd.png -------------------------------------------------------------------------------- /client/assets/launch/imgs/comp_dl_jdtd.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "40705292-9439-4fec-8a53-e76d0692bfa0", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "40705292-9439-4fec-8a53-e76d0692bfa0@6c48a", 14 | "displayName": "comp_dl_jdtd", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "40705292-9439-4fec-8a53-e76d0692bfa0" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "40705292-9439-4fec-8a53-e76d0692bfa0@f9941", 37 | "displayName": "comp_dl_jdtd", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 972, 49 | "height": 11, 50 | "rawWidth": 972, 51 | "rawHeight": 11, 52 | "borderTop": 3, 53 | "borderBottom": 2, 54 | "borderLeft": 26, 55 | "borderRight": 28, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "40705292-9439-4fec-8a53-e76d0692bfa0@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "40705292-9439-4fec-8a53-e76d0692bfa0@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/launch/imgs/gameStart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/launch/imgs/gameStart.png -------------------------------------------------------------------------------- /client/assets/launch/imgs/gameStart.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "98d29659-08b7-4a12-9ee4-26c65c245fbf", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "98d29659-08b7-4a12-9ee4-26c65c245fbf@6c48a", 14 | "displayName": "gameStart", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "98d29659-08b7-4a12-9ee4-26c65c245fbf" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | } 34 | }, 35 | "userData": { 36 | "hasAlpha": true, 37 | "type": "texture", 38 | "redirect": "98d29659-08b7-4a12-9ee4-26c65c245fbf@6c48a", 39 | "fixAlphaTransparencyArtifacts": false 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /client/assets/launch/imgs/glow_blue3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/launch/imgs/glow_blue3.png -------------------------------------------------------------------------------- /client/assets/launch/imgs/glow_blue3.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "dff84119-a60c-4366-b71f-9e237002c0ff", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "dff84119-a60c-4366-b71f-9e237002c0ff@6c48a", 14 | "displayName": "glow_blue3", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "dff84119-a60c-4366-b71f-9e237002c0ff" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | } 34 | }, 35 | "userData": { 36 | "hasAlpha": true, 37 | "type": "texture", 38 | "redirect": "dff84119-a60c-4366-b71f-9e237002c0ff@6c48a", 39 | "fixAlphaTransparencyArtifacts": false 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /client/assets/launch/lauch.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:33:56 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 16:49:44 6 | * @Description: file content 7 | */ 8 | 9 | import * as cc from 'cc'; 10 | import { BaseLoader } from './BaseLoader'; 11 | const { ccclass, property } = cc._decorator; 12 | 13 | enum ENV { 14 | DEBUG, 15 | INNER_TEST, 16 | OUT_TEST, 17 | RELEASE, 18 | } 19 | 20 | @ccclass('Lauch') 21 | export class Lauch extends cc.Component { 22 | @property(cc.ProgressBar) 23 | private m_loadingBar : cc.ProgressBar = null!; 24 | 25 | @property(cc.Label) 26 | private m_lblProcess : cc.Label = null!; 27 | 28 | @property({ 29 | type : cc.Enum(ENV), 30 | displayName : "GameEnv", 31 | tooltip : "游戏发布环境", 32 | }) 33 | private m_gameEnv : number = ENV.RELEASE; 34 | 35 | 36 | updateProcess(percent : number){ 37 | this.m_lblProcess.string = `游戏加载中:${percent}%` 38 | this.m_loadingBar.progress = percent/100; 39 | } 40 | 41 | start () { 42 | let resload = new BaseLoader(); 43 | this.updateProcess(0); 44 | cc.setDisplayStats(this.m_gameEnv != ENV.RELEASE); 45 | 46 | if(cc.sys.isMobile) 47 | cc.screen.requestFullScreen() 48 | 49 | BaseLoader.loadBundleArray(["scripts"], ()=>{ 50 | resload.loadPrefab("scripts#world/GameWorld", ( err, prefab : cc.Prefab)=>{ 51 | let node = cc.instantiate(prefab); 52 | let GameWorld : any = node.getComponent("GameWorld"); 53 | GameWorld.m_loadingBar = this.m_loadingBar; 54 | GameWorld.m_lblProcess = this.m_lblProcess; 55 | GameWorld.m_gameEnv = this.m_gameEnv; 56 | cc.game.addPersistRootNode(node); 57 | }) 58 | }, ( percent : number)=>{ 59 | this.updateProcess(Math.floor(percent*100)); 60 | }) 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /client/assets/launch/lauch.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "540711fd-dd28-41f3-a832-25722329cfe7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/launch/launch.scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.38", 3 | "importer": "scene", 4 | "imported": true, 5 | "uuid": "dbe00cf2-c455-461e-85c2-6d975dce9cd9", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/modules.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "b2bb38e0-77a2-47da-9fbe-73a516694048", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/modules/common.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "4f7444b9-cbc8-44b8-a871-fb0b697adc24", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {}, 11 | "isBundle": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/modules/common/config.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "90241451-9a51-4ba3-9403-dfc578222ce4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/modules/hall.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "5d600016-a291-4026-912a-fbd76f11e619", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {}, 11 | "isBundle": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/modules/hall/hallScene.scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.38", 3 | "importer": "scene", 4 | "imported": true, 5 | "uuid": "e2de9afc-5ced-4f99-a2ac-7911e36a63b6", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "1c10942b-de85-4c3f-afdd-c9be6ff6d42e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBox01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeBox01.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBox01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "81463105-a122-49b2-b4ae-14e90b56426e", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "81463105-a122-49b2-b4ae-14e90b56426e@6c48a", 14 | "displayName": "homeBox01", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "81463105-a122-49b2-b4ae-14e90b56426e" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "81463105-a122-49b2-b4ae-14e90b56426e@f9941", 37 | "displayName": "homeBox01", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 512, 49 | "height": 142, 50 | "rawWidth": 512, 51 | "rawHeight": 142, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "81463105-a122-49b2-b4ae-14e90b56426e@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "81463105-a122-49b2-b4ae-14e90b56426e@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBox02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeBox02.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBox02.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "428ac82d-e65a-46b9-b465-91fda243a3ab", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "428ac82d-e65a-46b9-b465-91fda243a3ab@6c48a", 14 | "displayName": "homeBox02", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "428ac82d-e65a-46b9-b465-91fda243a3ab" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "428ac82d-e65a-46b9-b465-91fda243a3ab@f9941", 37 | "displayName": "homeBox02", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 249, 49 | "height": 193, 50 | "rawWidth": 249, 51 | "rawHeight": 193, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "428ac82d-e65a-46b9-b465-91fda243a3ab@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "428ac82d-e65a-46b9-b465-91fda243a3ab@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBtnSetting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeBtnSetting.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBtnSetting.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "600c6fdf-0e26-4201-b8e9-a8d30501ff99", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "600c6fdf-0e26-4201-b8e9-a8d30501ff99@6c48a", 14 | "displayName": "homeBtnSetting", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "600c6fdf-0e26-4201-b8e9-a8d30501ff99" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "600c6fdf-0e26-4201-b8e9-a8d30501ff99@f9941", 37 | "displayName": "homeBtnSetting", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 70, 49 | "height": 70, 50 | "rawWidth": 70, 51 | "rawHeight": 70, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "600c6fdf-0e26-4201-b8e9-a8d30501ff99@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "600c6fdf-0e26-4201-b8e9-a8d30501ff99@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBtnStart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeBtnStart.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeBtnStart.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "5c012506-1379-47a7-9f7e-5e66058e37ca", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "5c012506-1379-47a7-9f7e-5e66058e37ca@6c48a", 14 | "displayName": "homeBtnStart", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "5c012506-1379-47a7-9f7e-5e66058e37ca" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "5c012506-1379-47a7-9f7e-5e66058e37ca@f9941", 37 | "displayName": "homeBtnStart", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 570, 49 | "height": 182, 50 | "rawWidth": 570, 51 | "rawHeight": 182, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "5c012506-1379-47a7-9f7e-5e66058e37ca@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "5c012506-1379-47a7-9f7e-5e66058e37ca@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeFont01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeFont01.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeFont01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "b4ad452b-34d7-490e-8bd7-d3cf84c8fc78", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "b4ad452b-34d7-490e-8bd7-d3cf84c8fc78@6c48a", 14 | "displayName": "homeFont01", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "b4ad452b-34d7-490e-8bd7-d3cf84c8fc78" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "b4ad452b-34d7-490e-8bd7-d3cf84c8fc78@f9941", 37 | "displayName": "homeFont01", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 174, 49 | "height": 55, 50 | "rawWidth": 174, 51 | "rawHeight": 55, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "b4ad452b-34d7-490e-8bd7-d3cf84c8fc78@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "b4ad452b-34d7-490e-8bd7-d3cf84c8fc78@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeIconArrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeIconArrow.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeIconArrow.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "82ffcb6f-c71e-4c69-a3f5-581837ac076b", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "82ffcb6f-c71e-4c69-a3f5-581837ac076b@6c48a", 14 | "displayName": "homeIconArrow", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "82ffcb6f-c71e-4c69-a3f5-581837ac076b" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "82ffcb6f-c71e-4c69-a3f5-581837ac076b@f9941", 37 | "displayName": "homeIconArrow", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 150, 49 | "height": 156, 50 | "rawWidth": 150, 51 | "rawHeight": 156, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "82ffcb6f-c71e-4c69-a3f5-581837ac076b@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "82ffcb6f-c71e-4c69-a3f5-581837ac076b@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeIconBest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeIconBest.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeIconBest.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "af4e9148-80d8-48e2-a11b-c54e1ddac70c", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "af4e9148-80d8-48e2-a11b-c54e1ddac70c@6c48a", 14 | "displayName": "homeIconBest", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "af4e9148-80d8-48e2-a11b-c54e1ddac70c" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "af4e9148-80d8-48e2-a11b-c54e1ddac70c@f9941", 37 | "displayName": "homeIconBest", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 49, 49 | "height": 42, 50 | "rawWidth": 49, 51 | "rawHeight": 42, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "af4e9148-80d8-48e2-a11b-c54e1ddac70c@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "af4e9148-80d8-48e2-a11b-c54e1ddac70c@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeIconMap01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/homeIconMap01.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/homeIconMap01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "ad872603-4290-4f03-a24d-cf50f21f1292", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "ad872603-4290-4f03-a24d-cf50f21f1292@6c48a", 14 | "displayName": "homeIconMap01", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "ad872603-4290-4f03-a24d-cf50f21f1292" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "ad872603-4290-4f03-a24d-cf50f21f1292@f9941", 37 | "displayName": "homeIconMap01", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 480, 49 | "height": 412, 50 | "rawWidth": 480, 51 | "rawHeight": 412, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "ad872603-4290-4f03-a24d-cf50f21f1292@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "ad872603-4290-4f03-a24d-cf50f21f1292@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/hall/imgs/logo.png -------------------------------------------------------------------------------- /client/assets/modules/hall/imgs/logo.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "c32917b3-e4d0-4c8a-be70-e193eb50c570", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "c32917b3-e4d0-4c8a-be70-e193eb50c570@6c48a", 14 | "displayName": "logo", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "c32917b3-e4d0-4c8a-be70-e193eb50c570" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "c32917b3-e4d0-4c8a-be70-e193eb50c570@f9941", 37 | "displayName": "logo", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 470, 49 | "height": 169, 50 | "rawWidth": 470, 51 | "rawHeight": 169, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "c32917b3-e4d0-4c8a-be70-e193eb50c570@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "c32917b3-e4d0-4c8a-be70-e193eb50c570@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "d55c5887-15a9-4755-8c69-7fa3f66ef7a6", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {}, 11 | "isBundle": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/modules/test/scene.scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.38", 3 | "importer": "scene", 4 | "imported": true, 5 | "uuid": "1758cbf6-22b9-4430-b8b6-3d9a11065d15", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "71196cda-a273-4494-8406-c4332170d267", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrContinuous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrContinuous.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowDouble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowDouble.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowDouble.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "b724bdc9-89b9-4c7f-bc66-b23025bf6260", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "b724bdc9-89b9-4c7f-bc66-b23025bf6260@6c48a", 14 | "displayName": "arrowDouble", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "b724bdc9-89b9-4c7f-bc66-b23025bf6260" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "b724bdc9-89b9-4c7f-bc66-b23025bf6260@f9941", 37 | "displayName": "arrowDouble", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "b724bdc9-89b9-4c7f-bc66-b23025bf6260@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "b724bdc9-89b9-4c7f-bc66-b23025bf6260@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowFire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowFire.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowFire.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "8080d908-7364-48d0-85d5-3e6a6f975529", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "8080d908-7364-48d0-85d5-3e6a6f975529@6c48a", 14 | "displayName": "arrowFire", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "8080d908-7364-48d0-85d5-3e6a6f975529" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "8080d908-7364-48d0-85d5-3e6a6f975529@f9941", 37 | "displayName": "arrowFire", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "8080d908-7364-48d0-85d5-3e6a6f975529@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "8080d908-7364-48d0-85d5-3e6a6f975529@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowLaunch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowLaunch.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowLightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowLightning.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowPenetrate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowPenetrate.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowRebound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowRebound.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowReverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowReverse.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowSide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowSide.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowSide.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "3b3c5a49-bf59-4604-b287-084f192fabf4", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "3b3c5a49-bf59-4604-b287-084f192fabf4@6c48a", 14 | "displayName": "arrowSide", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "3b3c5a49-bf59-4604-b287-084f192fabf4" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "3b3c5a49-bf59-4604-b287-084f192fabf4@f9941", 37 | "displayName": "arrowSide", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "3b3c5a49-bf59-4604-b287-084f192fabf4@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "3b3c5a49-bf59-4604-b287-084f192fabf4@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowUmbrella.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowUmbrella.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/arrowice.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/arrowice.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "dd138ad1-0505-4363-992a-03ab5cfabe03", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "dd138ad1-0505-4363-992a-03ab5cfabe03@6c48a", 14 | "displayName": "arrowice", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "dd138ad1-0505-4363-992a-03ab5cfabe03" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "dd138ad1-0505-4363-992a-03ab5cfabe03@f9941", 37 | "displayName": "arrowice", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "dd138ad1-0505-4363-992a-03ab5cfabe03@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "dd138ad1-0505-4363-992a-03ab5cfabe03@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/auto-atlas.pac: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.SpriteAtlas" 3 | } 4 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/auto-atlas.pac.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.6", 3 | "importer": "auto-atlas", 4 | "imported": true, 5 | "uuid": "9ffd3117-2755-433e-9079-e92068678b74", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "maxWidth": 1024, 12 | "maxHeight": 1024, 13 | "padding": 2, 14 | "allowRotation": true, 15 | "forceSquared": false, 16 | "powerOfTwo": false, 17 | "algorithm": "MaxRects", 18 | "format": "png", 19 | "quality": 80, 20 | "contourBleed": true, 21 | "paddingBleed": true, 22 | "filterUnused": true, 23 | "removeTextureInBundle": true, 24 | "removeImageInBundle": true, 25 | "removeSpriteAtlasInBundle": true, 26 | "compressSettings": {}, 27 | "textureSetting": { 28 | "wrapModeS": "repeat", 29 | "wrapModeT": "repeat", 30 | "minfilter": "linear", 31 | "magfilter": "linear", 32 | "mipfilter": "none", 33 | "anisotropy": 0 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/bloodthirsty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/bloodthirsty.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/moveSpeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/moveSpeed.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/moveSpeed.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "44d6af5f-bc8a-4a20-b9cd-da71c803472f", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "44d6af5f-bc8a-4a20-b9cd-da71c803472f@6c48a", 14 | "displayName": "moveSpeed", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "44d6af5f-bc8a-4a20-b9cd-da71c803472f" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "44d6af5f-bc8a-4a20-b9cd-da71c803472f@f9941", 37 | "displayName": "moveSpeed", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "44d6af5f-bc8a-4a20-b9cd-da71c803472f@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "44d6af5f-bc8a-4a20-b9cd-da71c803472f@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseAttack01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseAttack01.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseAttack02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseAttack02.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseAttackSpeed01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseAttackSpeed01.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseAttackSpeed02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseAttackSpeed02.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseCriticalHitDamage01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseCriticalHitDamage01.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseCriticalHitDamage02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseCriticalHitDamage02.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseDodge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseDodge.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseDodge.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "91192e5d-ad73-4f4a-990f-1b57892a18b3", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "91192e5d-ad73-4f4a-990f-1b57892a18b3@6c48a", 14 | "displayName": "raiseDodge", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "91192e5d-ad73-4f4a-990f-1b57892a18b3" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "91192e5d-ad73-4f4a-990f-1b57892a18b3@f9941", 37 | "displayName": "raiseDodge", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "91192e5d-ad73-4f4a-990f-1b57892a18b3@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "91192e5d-ad73-4f4a-990f-1b57892a18b3@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/raiseHpLimit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/raiseHpLimit.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/recovery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/assets/modules/test/skillIcon/recovery.png -------------------------------------------------------------------------------- /client/assets/modules/test/skillIcon/recovery.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.23", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "880520f0-722c-4eb8-91fa-81e12b26a0b1", 6 | "files": [ 7 | ".json", 8 | ".png" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "880520f0-722c-4eb8-91fa-81e12b26a0b1@6c48a", 14 | "displayName": "recovery", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "clamp-to-edge", 19 | "wrapModeT": "clamp-to-edge", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "880520f0-722c-4eb8-91fa-81e12b26a0b1" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "880520f0-722c-4eb8-91fa-81e12b26a0b1@f9941", 37 | "displayName": "recovery", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 132, 49 | "height": 132, 50 | "rawWidth": 132, 51 | "rawHeight": 132, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "880520f0-722c-4eb8-91fa-81e12b26a0b1@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "880520f0-722c-4eb8-91fa-81e12b26a0b1@f9941", 73 | "fixAlphaTransparencyArtifacts": false 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /client/assets/modules/test/ui.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "0dd2474b-3cef-4d1d-9f59-9714bede42a2", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/modules/test/ui/TableViewDrawCallTest.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.38", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "9cc1a7de-b7e5-4207-8f8b-dff61e0694ab", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "TableViewDrawCallTest" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/modules/test/ui/item.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.38", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "05330bb1-38f6-4c0f-ba0f-0f06efc2d4fc", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "item" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/resources.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "49e0443d-1cc5-4430-a08e-ebd6b23515da", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "isBundle": true, 10 | "bundleName": "resources", 11 | "priority": 8, 12 | "compressionType": {}, 13 | "isRemoteBundle": {} 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /client/assets/resources/project.manifest: -------------------------------------------------------------------------------- 1 | undefined -------------------------------------------------------------------------------- /client/assets/resources/project.manifest.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "importer": "*", 4 | "imported": true, 5 | "uuid": "65f93941-d500-4457-bcd4-f19307571c8a", 6 | "files": [ 7 | ".json", 8 | ".manifest" 9 | ], 10 | "subMetas": {}, 11 | "userData": {} 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/resources/proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "1b3708f1-40c6-455d-87e1-9ed124943060", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/resources/proto/battle.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "b7311e15-9464-42e9-9561-3f0d212aaeb0", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/proto/common.proto: -------------------------------------------------------------------------------- 1 | package common; 2 | 3 | //客户端与服务器通信通用消息包 4 | message CommonHead{ 5 | required int32 cmd = 1; //协议号 6 | required int32 session = 2; //通信的sessionId 7 | optional bytes byte = 3; //协议包流 8 | } 9 | 10 | message GameHead{ 11 | required int32 gameId = 1; //游戏id 12 | required int32 roomId = 2; //房间id 13 | required bytes byte = 3; 14 | } 15 | 16 | message Heart 17 | { 18 | optional int32 clientTime = 1; 19 | optional int32 serverTime = 2; 20 | } 21 | 22 | message Emtpy 23 | { 24 | 25 | } 26 | 27 | message NoticeMsg 28 | { 29 | required int32 type = 1; //通知类型 1、msgbox 弹窗 2、AlertTips 飘字 30 | required string content = 2; //通知内容 31 | } 32 | 33 | message Error 34 | { 35 | required int32 error = 1; //错误码 36 | } -------------------------------------------------------------------------------- /client/assets/resources/proto/common.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "61ef1462-842f-410f-adb1-2f411a58deca", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/proto/email.proto: -------------------------------------------------------------------------------- 1 | package email; 2 | 3 | message attach_item 4 | { 5 | required int32 id = 1; 6 | required int32 num = 2; 7 | } 8 | 9 | message email_item 10 | { 11 | required int32 id = 1; 12 | required int32 send_uid = 2; 13 | required int32 recv_uid = 3; 14 | required int32 send_time = 4; 15 | required string title = 5; 16 | required string content = 6; 17 | repeated attach_item attach_items = 7; 18 | required int32 type = 8; 19 | required int32 status = 9; 20 | } 21 | 22 | message email_list 23 | { 24 | repeated email_item emails = 1; 25 | } 26 | 27 | message get_remail_list 28 | { 29 | 30 | } 31 | 32 | message read_email 33 | { 34 | repeated int32 ids = 1; //要读取的邮件id 35 | } 36 | 37 | message delete_email 38 | { 39 | repeated int32 ids = 1; //要删除的邮件id 40 | } -------------------------------------------------------------------------------- /client/assets/resources/proto/email.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "be8318b1-b486-4456-8a52-db67be68440e", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/proto/game.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "fa559ebc-32f3-462b-95e8-124e0ab15a84", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/proto/hero.proto: -------------------------------------------------------------------------------- 1 | package hero; 2 | 3 | 4 | //请求设置当前使用的英雄 5 | message reqUseHero{ 6 | required int32 heroId = 1; //设置玩家当前使用的英雄id 7 | } 8 | 9 | message respUseHero{ 10 | required int32 code = 1; //设置状态 0 代表成功 11 | } 12 | 13 | //请求观看广告获得奖励 14 | message reqViewADShow{ 15 | } 16 | 17 | message respViewADShow{ 18 | required string uuid = 1; //此次观看视频的内部唯一标识,通过此id能最终获取对应的奖励 19 | } 20 | 21 | //观看完广告请求获得英雄 22 | message reqGetHero{ 23 | required string way = 1; //获取英雄的途径 1、钻石购买, 2、广告获得碎片 24 | required int32 heroId = 2; //要获取的英雄id 25 | optional string uuid = 3; //获取英雄观看广告的uuid,后期服务器可能会校验是否真的观看广告成功 26 | } 27 | 28 | message respGetHero{ 29 | required int32 code = 1; 30 | } 31 | 32 | message reqMergeHero{ 33 | required int32 heroId = 1; //要合成的英雄 34 | } 35 | 36 | message respMergeHero{ 37 | required int32 code = 1; 38 | } 39 | 40 | //游戏开始前请求当前能够试用的英雄id 41 | message reqGetTryHero{ 42 | 43 | } 44 | 45 | message respGetTryHero{ 46 | required int32 heroId = 1; //当前能试用的英雄id,<= 0 代表无可试用英雄 47 | } 48 | 49 | message reqGetPower{ 50 | required string uuid = 1; 51 | required bool isMultiple = 2; 52 | } 53 | 54 | message reqGetDiamond{ 55 | required string uuid = 1; 56 | required bool isMultiple = 2; 57 | } 58 | 59 | message RewardItem{ 60 | required int32 id = 1; 61 | required int32 num = 2; 62 | } 63 | 64 | message respGetPower{ 65 | required int32 code = 1; 66 | repeated RewardItem items = 2; //奖励物品 67 | } 68 | 69 | message respGetDiamond{ 70 | required int32 code = 1; 71 | repeated RewardItem items = 2; //奖励物品 72 | } 73 | 74 | message reqGetAchieveReward{ 75 | required int32 achieveId = 1; //成就id 76 | } 77 | 78 | message respAchieveReward{ 79 | required int32 code = 1; 80 | optional int32 achieveId = 2; //成就id 81 | repeated RewardItem items = 3; //奖励物品 82 | } 83 | 84 | message reqUpLevelSkill{ 85 | required int32 heroId = 1; 86 | required int32 skillId = 2; 87 | } 88 | 89 | message respUpLevelSkill{ 90 | required int32 code = 1; 91 | } -------------------------------------------------------------------------------- /client/assets/resources/proto/hero.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "54591dfd-f0f4-4001-ae8e-0181ac742c80", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/proto/login_activity.proto: -------------------------------------------------------------------------------- 1 | package login_activity; 2 | 3 | message getLoginReward 4 | { 5 | required int32 normalget = 1; //是否普通获取登录奖励 6 | optional string uuid = 2; // 观看广告获取登录奖励许传递观看的广告uuid 7 | } 8 | 9 | message rewardItem 10 | { 11 | required int32 id = 1; //itemid 12 | required int32 num = 2; //num 13 | } 14 | 15 | message getLoginRewardResp 16 | { 17 | required int32 code = 1; //是否成功 = 0 代表成功 18 | repeated rewardItem items = 2; //获得的奖励 19 | } 20 | 21 | //请求转盘 22 | message requestTurnTable 23 | { 24 | optional string uuid = 1; //观看得广告uuid 25 | } 26 | 27 | message requestTurnTableSumReward 28 | { 29 | 30 | } 31 | 32 | message TurnSumReward 33 | { 34 | required int32 code = 1; // code 35 | repeated rewardItem items = 2; //累计次数奖励 36 | } 37 | 38 | //转盘结果 39 | message TurnResult 40 | { 41 | required int32 code = 1; // 是否成功 = 0 代表成功 42 | optional int32 pos = 2; //转盘旋转的结果位置 43 | repeated rewardItem items = 3; //获得的奖励 44 | } 45 | 46 | 47 | 48 | message reqShareVideoReward 49 | { 50 | 51 | } 52 | 53 | message respShareVideoReward 54 | { 55 | required int32 code = 1; //领取奖励结果 56 | repeated rewardItem items = 2; //获得的奖励 57 | } 58 | 59 | message reqFinishGuide 60 | { 61 | required int32 flag = 1; //完成引导的标记 62 | } 63 | 64 | message respFinishGuide 65 | { 66 | required int32 code = 1; //结果 67 | } -------------------------------------------------------------------------------- /client/assets/resources/proto/login_activity.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "2133278e-3e58-4970-a0b7-2a9f3964194c", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/proto/normal.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "importer": "text", 4 | "imported": true, 5 | "uuid": "a8d4d42b-9f14-4241-9d26-f7bd1dd97e4b", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/resources/version.json: -------------------------------------------------------------------------------- 1 | {"version":"1.1.1.14"} -------------------------------------------------------------------------------- /client/assets/resources/version.json.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "importer": "json", 4 | "imported": true, 5 | "uuid": "acceb36f-1478-48e2-813d-31b0812a8f17", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "8e4050f4-b998-4350-9ea8-5dcfcc5aed94", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": { 10 | "web-desktop": "merge_all_json" 11 | }, 12 | "isRemoteBundle": {}, 13 | "isBundle": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /client/assets/scripts/base.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "76baaeb6-816b-42e8-81bb-434036f85169", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "0f7fc3f1-624d-4b21-94d9-5a42db851902", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/AOPManager.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f7e05797-f46e-49ab-8b24-36712d4491c1", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/ResLoader.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:40:16 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 14:22:56 6 | * @Description: file content 7 | */ 8 | import * as cc from "cc" 9 | import { BaseLoader } from "../../../launch/BaseLoader"; 10 | import { HttpUtils } from "../utils/util/HttpUtils"; 11 | const { ccclass } = cc._decorator; 12 | 13 | @ccclass("ResLoader") 14 | export class ResLoader extends BaseLoader{ 15 | //需要使用 bundle 的 version 更新策略则需要使用此接口 16 | public static loadRemoteBundleVersions( versionFileUrl : string, doneCallback : ()=>void ){ 17 | if(this.m_bundleVersions != null) return doneCallback(); 18 | 19 | HttpUtils.httpGet(versionFileUrl, ( txt : string )=>{ 20 | this.m_bundleVersions = new Map(); 21 | let data = txt == "" ? {} : JSON.parse(txt); 22 | for(let key in data){ 23 | this.m_bundleVersions.set(key, data[key]); 24 | } 25 | doneCallback(); 26 | }) 27 | } 28 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/core/ResLoader.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "133ee5d4-e76c-422c-b548-f693bbb53a92", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/SceneMgr.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "538cba83-4d16-486d-9481-016ac0268d4d", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/ServiceMgr.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:40:16 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:47:38 6 | * @Description: file content 7 | */ 8 | import * as cc from "cc" 9 | 10 | const {ccclass, property} = cc._decorator; 11 | type CLS_NEW = new()=>T; 12 | 13 | export class ServiceMgr { 14 | private static m_services : Map = new Map; 15 | 16 | public static getService( name : string, cls : CLS_NEW) : T{ 17 | let instance = this.m_services.get(name) 18 | if(instance == null){ 19 | instance = new cls(); 20 | instance.start(); 21 | this.m_services.set(name, instance); 22 | } 23 | 24 | return instance; 25 | } 26 | 27 | public static stop(){ 28 | this.m_services.forEach(( service )=>{ 29 | service.stop(); 30 | }) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/ServiceMgr.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "be400cc5-7ce7-4ebf-9ae2-4afbb6f341f3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/SoundMgr.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "525faa31-e8c3-4ef4-a0f4-a21310203589", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/StoreMgr.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "64944eba-85f4-49d1-8b86-867915a2d0b0", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/UIMgr.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "637b70db-5df3-4790-bdba-9f8b5eb2993d", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "59c5594d-4b32-42d9-aa61-9e45f4abbd9e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio/AudioEngine.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:40:40 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 12:31:02 6 | * @Description: file content 7 | */ 8 | import * as cc from "cc" 9 | import { AudioSourceBase } from "./AudioSourceBase" 10 | import { AudioSourceWX } from "./AudioSourceWX" 11 | import { AudioSourceCom } from "./AudioSourceCom" 12 | import { platform } from "../../platform/platform"; 13 | import { ChannelType } from "../../../config/PlatformConfig"; 14 | 15 | //渠道指定的音频配置 16 | let AudioChannelImp : any = { 17 | [ChannelType.MiniWX] : AudioSourceWX, 18 | } 19 | 20 | type CLS_NEW = new()=>T; 21 | export class AudioEngine{ 22 | private static s_instance : AudioSourceBase = null!; 23 | public static getInstance() : AudioSourceBase{ 24 | if(this.s_instance != null) return this.s_instance; 25 | 26 | let impClass:CLS_NEW = AudioSourceCom; 27 | let channel = platform.getInstance().getChannel(); 28 | if (AudioChannelImp[channel]) { 29 | impClass = AudioChannelImp[channel] || AudioSourceCom; 30 | } 31 | this.s_instance = new impClass(); 32 | this.s_instance.init(); 33 | return this.s_instance; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio/AudioEngine.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "c46b7666-13db-4b4a-a728-fd2708d2b135", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio/AudioSourceBase.ts: -------------------------------------------------------------------------------- 1 | import * as cc from "cc"; 2 | 3 | const { ccclass } = cc._decorator; 4 | 5 | export enum AudioState { 6 | INIT = 0, 7 | PLAYING = 1, 8 | PAUSED = 2, 9 | STOPPED = 3, 10 | INTERRUPTED = 4 11 | } 12 | 13 | @ccclass("AudioSourceBase") 14 | export class AudioSourceBase{ 15 | protected _loop: boolean = false; 16 | protected _volume: number = 1; 17 | protected _clip: cc.AudioClip | null = null; 18 | protected _playOnAwake: boolean = false; 19 | protected _enabled: boolean = false; 20 | protected _state: AudioState = AudioState.INIT; 21 | 22 | get enabled(): boolean{ 23 | return this._enabled; 24 | } 25 | set enabled(value: boolean){ 26 | this._enabled = value; 27 | } 28 | 29 | set clip(val: cc.AudioClip | null){ 30 | this._clip = val; 31 | } 32 | get clip(): cc.AudioClip | null{ 33 | return this._clip; 34 | } 35 | 36 | set loop(val: boolean){ 37 | this._loop = val; 38 | } 39 | get loop(): boolean{ 40 | return this._loop; 41 | } 42 | 43 | set playOnAwake(val: boolean){ 44 | this._playOnAwake = val; 45 | } 46 | get playOnAwake(): boolean{ 47 | return this._playOnAwake; 48 | } 49 | 50 | set volume(val: number){ 51 | this._volume = val; 52 | } 53 | get volume(): number{ 54 | return this._volume; 55 | } 56 | 57 | get state(){ 58 | return this._state; 59 | } 60 | 61 | init(){ 62 | this._state = AudioState.INIT; 63 | } 64 | 65 | play(): void{ 66 | this._state = AudioState.PLAYING; 67 | } 68 | 69 | pause(): void{ 70 | this._state = AudioState.PAUSED; 71 | } 72 | 73 | resume(): void{ 74 | this._state = AudioState.PLAYING; 75 | } 76 | 77 | stop(): void{ 78 | this._state = AudioState.STOPPED; 79 | } 80 | 81 | 82 | playOneShot(clip: cc.AudioClip, volumeScale?: number): void{ 83 | 84 | } 85 | 86 | isPause(){ 87 | return this._state == AudioState.PAUSED; 88 | } 89 | 90 | } 91 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio/AudioSourceBase.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "9ee11623-498a-4368-894c-a026d4374bab", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio/AudioSourceCom.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "19ec3033-316a-4ce9-a3e3-d15b7c72ffb0", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/audio/AudioSourceWX.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "0d8b7985-a35e-4e16-8345-a112cda57acb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/core/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AOPManager" 2 | export * from "./ResLoader" 3 | export * from "./SceneMgr" 4 | export * from "./ServiceMgr" 5 | export * from "./SoundMgr" 6 | export * from "./StoreMgr" 7 | export * from "./UIMgr" -------------------------------------------------------------------------------- /client/assets/scripts/base/core/index.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4b28cbd4-236b-4a9a-92c6-ac2eefde23ab", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "90477f41-9da5-474a-a8c7-2396073e0449", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/BaseScene.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html 3 | // Learn Attribute: 4 | // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html 5 | // Learn life-cycle callbacks: 6 | // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html 7 | import * as cc from 'cc'; 8 | const { ccclass } = cc._decorator; 9 | import { BaseView } from './BaseView'; 10 | 11 | @ccclass("BaseScene") 12 | export class BaseScene extends BaseView { 13 | private = false; 14 | onLoad(){ 15 | super.onLoad(); 16 | } 17 | 18 | public getSceneType(){ 19 | return 0; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/BaseScene.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4d7f005f-2c2d-4ac9-933d-4f362ec3ceec", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/BaseService.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:41:09 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:52:25 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { EventDispatcher } from "./EventDispatcher" 10 | 11 | const {ccclass} = cc._decorator; 12 | 13 | @ccclass("BaseService") 14 | export class BaseService extends EventDispatcher{ 15 | public start () { 16 | 17 | } 18 | 19 | public stop(){ 20 | 21 | } 22 | } 23 | 24 | BaseService.name 25 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/BaseService.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "1dc57ecb-afca-402d-acc9-5797f908e370", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/BaseUI.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "34f9f88e-a738-4422-b008-c742eece5803", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/BaseView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "129f424f-ea57-40f6-80c1-e57c1488381a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/EventDispatcher.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "218e29cd-ed03-4bc2-99e3-afab1059dfc9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./BaseScene" 2 | export * from "./BaseView" 3 | export * from "./BaseService" 4 | export * from "./EventDispatcher" 5 | export * from "./BaseUI" 6 | -------------------------------------------------------------------------------- /client/assets/scripts/base/frame/index.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "cbe6e31e-d869-4cf7-96bd-d5a884a471e4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "d48cc684-ce88-46b0-96b2-f11bcb32e471", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/BarItem.ts: -------------------------------------------------------------------------------- 1 | import * as cc from 'cc'; 2 | import { BaseUI } from '../frame'; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass 6 | export default class BarItem extends BaseUI { 7 | private m_itemId : number = 0; 8 | 9 | onLoad () { 10 | 11 | } 12 | 13 | getItemIdx(){ 14 | return this.m_itemId 15 | } 16 | 17 | setItemIdx(itemId : number){ 18 | this.m_itemId = itemId 19 | } 20 | 21 | onBarItemRender(data : any){ 22 | 23 | } 24 | 25 | onBarItemClick(isSelect : boolean){ 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/BarItem.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "80cd017c-1be4-47fe-b885-7e6ba0b92c2b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/BarMenu.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "2478fb75-388c-4ed3-b17b-4fadad17093a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/GridView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "fdc2f3d7-334f-474f-8a7f-0975a092442b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/ReDefineTableViewRender.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "eedf50bd-c70d-41db-a704-d90ccf27db70", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/RenderChange.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "0cc18a95-13ad-42d6-bc5f-91a65a86967e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/TableView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "07eb6787-a21c-475b-83d3-9ee740f3dfd2", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/TableViewCell.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "affc6e31-a31e-4644-b933-25bb401990b9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/ToggleView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "98b24bfc-4a94-4901-b2ef-e6b36b359377", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./GridView" 2 | export * from "./TableView" 3 | export * from "./TableViewCell" 4 | export * from "./urlImageView" -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/index.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "88d4e547-a718-4898-a665-969ec27609b7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/urlImageView.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:41:28 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:53:58 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | const { ccclass, property } = cc._decorator; 10 | 11 | @ccclass('UrlImageView') 12 | export class UrlImageView extends cc.Component { 13 | private m_image: cc.Sprite | null = null; 14 | 15 | @property({ 16 | displayName : "url", 17 | }) //可以在编辑器中写入地址,也可以使用setUrl 18 | private m_url: string = ""; 19 | 20 | private m_istarted : boolean = false; 21 | private m_index : number = 0; //当前尝试次数 22 | private m_retryNum : number = 3; //最大重视次数 23 | 24 | public setUrl(url: string) { 25 | if(this.m_url == url) return; 26 | 27 | this.m_index = 0; 28 | this.m_url = url; 29 | 30 | if(this.m_image) 31 | this.m_image.spriteFrame = new cc.SpriteFrame(); 32 | if(this.m_istarted) 33 | this.load(); 34 | } 35 | 36 | private load() { 37 | if(this.m_url == "") return; 38 | 39 | let loadUrl = this.m_url; 40 | cc.assetManager.loadRemote(loadUrl, {ext : ".png"},(err : any, imgaeAsset : cc.ImageAsset )=>{ 41 | if(loadUrl != this.m_url) return; //异步过程,可能重新设置过url,所以需要过滤久的设置回调 42 | 43 | if (err) { 44 | cc.error(err.message || err); 45 | this.m_index++; 46 | if(this.m_index < this.m_retryNum){ 47 | this.load(); 48 | } 49 | } else { 50 | if(this.m_image) 51 | this.m_image.spriteFrame = cc.SpriteFrame.createWithImage(imgaeAsset); 52 | } 53 | }); 54 | } 55 | 56 | onLoad(){ 57 | this.m_image = this.getComponent(cc.Sprite); 58 | } 59 | 60 | start() { 61 | this.m_istarted = true; 62 | this.load(); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /client/assets/scripts/base/gui/urlImageView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f32cbc07-6d23-4029-a583-41d2c359f371", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/localized.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "a638265e-d9d0-436f-8e98-cba66683b440", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedConfigJson.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:41:46 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:54:04 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { LocalizadManager, LocalizedConfigJsonData } from './LocalizedManager'; 10 | const { ccclass, property } = cc._decorator; 11 | 12 | @ccclass('LocalizedConfigJson') 13 | export class LocalizedConfig extends cc.Component { 14 | @property({ 15 | type : cc.JsonAsset, 16 | tooltip : "", 17 | displayName : "english Label File", 18 | 19 | }) 20 | private m_english : cc.JsonAsset = null!; 21 | 22 | @property({ 23 | type : cc.JsonAsset, 24 | tooltip : "", 25 | displayName : "chiness Label File", 26 | 27 | }) 28 | private m_chiness : cc.JsonAsset = null!; 29 | 30 | onLoad(){ 31 | LocalizadManager.getInstance().pushConfig(new LocalizedConfigJsonData(this.name, { 32 | chiness : this.m_chiness.json, 33 | english : this.m_english.json, 34 | })); 35 | } 36 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedConfigJson.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "e60a5f6c-66b5-4bac-ab24-2ad33d661649", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedConfigPath.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:41:46 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:54:08 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { LocalizadManager, LocalizedConfigPathData } from './LocalizedManager'; 10 | const { ccclass, property } = cc._decorator; 11 | 12 | @ccclass('LocalizedConfigPath') 13 | export class LocalizedConfigPath extends cc.Component { 14 | @property({ 15 | tooltip : "", 16 | displayName : "english Label File", 17 | 18 | }) 19 | private m_english : string = null!; 20 | 21 | @property({ 22 | tooltip : "", 23 | displayName : "chiness Label File", 24 | 25 | }) 26 | private m_chiness : string = null!; 27 | 28 | onLoad(){ 29 | LocalizadManager.getInstance().pushConfig(new LocalizedConfigPathData(this.name, { 30 | chiness : this.m_chiness, 31 | english : this.m_english, 32 | })); 33 | } 34 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedConfigPath.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4ef006ea-ec55-4a0f-84c9-5da1aa42f5f3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedLabel.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:41:46 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:54:12 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { LocalizadManager, LANGUAGE_EVENT, LANGUAGE_TYPE } from './LocalizedManager'; 10 | const { ccclass, property } = cc._decorator; 11 | 12 | @ccclass('LocalizadLabel') 13 | export class LocalizadLabel extends cc.Component { 14 | 15 | protected m_originString : string = null!; 16 | protected m_label : cc.Label = null!; 17 | 18 | public get string() : string{ 19 | return this.m_label.string; 20 | } 21 | 22 | public set string( value : string){ 23 | this.m_originString = value; 24 | this.m_label.string = LocalizadManager.getInstance().getLabelString(value);; 25 | } 26 | 27 | protected onLoad(){ 28 | this.m_label = this.getComponent(cc.Label)!; 29 | 30 | this.m_originString = this.m_label.string; 31 | this.updateString(); 32 | LocalizadManager.getInstance().addListener(LANGUAGE_EVENT.UPDATE, this, this.updateString); 33 | } 34 | 35 | protected onDestroy(){ 36 | LocalizadManager.getInstance().removeListener(LANGUAGE_EVENT.UPDATE, this, this.updateString); 37 | super.onDestroy && super.onDestroy(); 38 | } 39 | 40 | protected updateString(){ 41 | this.m_label.string = LocalizadManager.getInstance().getLabelString(this.m_originString); 42 | } 43 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedLabel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d6cca37a-057f-4517-9f23-f7fe82817e39", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedManager.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "931a4cd7-91d7-4a35-8b26-b55051d29396", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/localized/LocalizedSprite.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b0d5e0dc-ed89-4d94-8a27-7cb2e92b7e44", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "57222317-b4ac-4d26-8ea8-f585fafca817", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogBattle.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "e548dbd4-6cec-4ce3-b26a-131ac3eea9d0", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogConsole.ts: -------------------------------------------------------------------------------- 1 | import { LogDelegate } from "./LogDelegate"; 2 | import { LogLevel } from "./LogLevel"; 3 | 4 | export class LogConsole implements LogDelegate{ 5 | private m_funcs : any = {}; 6 | 7 | constructor(){ 8 | this.m_funcs[LogLevel.INFO] = console.info; 9 | this.m_funcs[LogLevel.DEBUG] = console.debug; 10 | this.m_funcs[LogLevel.WARN] = console.warn; 11 | this.m_funcs[LogLevel.ERROR] = console.error; 12 | } 13 | 14 | close(): void { 15 | throw new Error("Method not implemented."); 16 | } 17 | 18 | public handleLog(level : LogLevel, params : any) : void{ 19 | let func = this.m_funcs[level] || console.info; 20 | 21 | func.apply(null, params); 22 | if(level >= LogLevel.WARN && level <= LogLevel.ERROR) 23 | { 24 | // console.trace(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogConsole.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d2f1c868-4759-44ca-8246-1f01248029e6", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogController.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "03fa420a-911e-43b9-9701-06cbfa538adb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogDelegate.ts: -------------------------------------------------------------------------------- 1 | import * as cc from "cc" 2 | import { LogLevel } from "./LogLevel"; 3 | 4 | export interface LogDelegate{ 5 | handleLog(level : LogLevel, params : any) : void; 6 | close():void; 7 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogDelegate.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "03d8e430-42f6-4d21-8f29-935bf798e340", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogLevel.ts: -------------------------------------------------------------------------------- 1 | export enum LogLevel{ 2 | INFO = 1, 3 | DEBUG = 2, 4 | WARN = 3, 5 | ERROR = 4 6 | } 7 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/LogLevel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "52d687fc-5be1-41ad-a817-0eb61c920914", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/log/log.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:42:02 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 11:54:31 6 | * @Description: file content 7 | */ 8 | import { LogController } from "./LogController" 9 | import { LogLevel } from "./LogLevel" 10 | 11 | function LogBase(level : LogLevel, params : any) 12 | { 13 | LogController.getInstance().handleLog(level, params) 14 | } 15 | 16 | export class log{ 17 | public static i(...params : any[]){ 18 | LogBase(LogLevel.INFO, params) 19 | } 20 | 21 | public static d(...params : any[]){ 22 | LogBase(LogLevel.DEBUG, params) 23 | } 24 | 25 | public static w(...params : any[]){ 26 | LogBase(LogLevel.DEBUG, ["################### warn begin ###################"]) 27 | LogBase(LogLevel.WARN, params) 28 | LogBase(LogLevel.DEBUG, ["################### warn end ###################"]) 29 | } 30 | 31 | public static e(...params : any[]){ 32 | LogBase(LogLevel.DEBUG, ["################### error begin ###################"]) 33 | LogBase(LogLevel.ERROR, params) 34 | LogBase(LogLevel.DEBUG, ["################### error end ###################"]) 35 | } 36 | 37 | public static enableBattle( uid : number){ 38 | LogController.getInstance().enableBattle(uid); 39 | } 40 | 41 | public static battle(...params : any[]) 42 | { 43 | LogController.getInstance().handleBattleLog(params); 44 | } 45 | 46 | public static LogLevel = LogLevel; 47 | public static LogController = LogController; 48 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/log/log.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "0f3ca2c6-68da-45a5-afb9-e6eca0d4b63a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "ad87fd4f-de6d-4dc2-91d9-a63e10cc7ba6", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/Network.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ba7c516e-a67f-40ab-9738-0edd5a6a9a5e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/PbCmd.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "7214389f-fca4-433c-a5d1-4c41ed7f658c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/ProtoRegister.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "9eff65df-64c0-42d1-ba38-7ce510e3c0cb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/bytebuffer.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "javascript", 4 | "imported": true, 5 | "uuid": "5af5bd9b-9794-42b8-aae1-1bb9821fe7f0", 6 | "files": [ 7 | ".js" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "isPlugin": true, 12 | "loadPluginInWeb": true, 13 | "loadPluginInNative": true, 14 | "loadPluginInEditor": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/long.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "javascript", 4 | "imported": true, 5 | "uuid": "93e85388-085b-4aff-a388-517f627e4817", 6 | "files": [ 7 | ".js" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "isPlugin": true, 12 | "dependencies": [ 13 | "93e85388-085b-4aff-a388-517f627e4817" 14 | ], 15 | "loadPluginInWeb": true, 16 | "loadPluginInNative": true, 17 | "loadPluginInEditor": true 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/netConfig.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "6f0b56e0-c93f-47d2-a216-fae94b4562dc", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/net/protobuf.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "javascript", 4 | "imported": true, 5 | "uuid": "af5b2a25-4931-4029-a6fe-3cbedf1e7338", 6 | "files": [ 7 | ".js" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "isPlugin": true, 12 | "loadPluginInWeb": true, 13 | "loadPluginInNative": true, 14 | "loadPluginInEditor": true, 15 | "dependencies": [ 16 | "5af5bd9b-9794-42b8-aae1-1bb9821fe7f0", 17 | "93e85388-085b-4aff-a388-517f627e4817" 18 | ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "624c3b6f-f774-4b55-a011-a3edfe292265", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "668c7058-47ee-4988-b8d8-687b7a2364e7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/ADBase.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8498223b-fec3-4947-8f6b-a1c4c4c0ab02", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/AdInterface.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ea06ecc5-8c5c-48c2-a863-cae37bb1f382", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "c55de9e2-caa6-48fa-a0c9-b191e2297190", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini/ADByte.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "1cf43451-0ca6-4358-b176-59d9c10b5adc", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini/ADMini.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "3c706e06-454b-455c-87da-9189b6c227db", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini/ADQQ.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from "cc" 3 | import { ADVideoType } from "../ADBase"; 4 | import { ADMini } from "./ADMini"; 5 | const {ccclass, property} = cc._decorator; 6 | 7 | const S_BANNER_ADID = "c6d3835f582d380046782143d196e749" 8 | const S_VIDEO_ADID = "8864e5f4a1ef78c5b7af2bdab8597a26" 9 | const S_INTERSTITIAL_ADID = "bb7720ad34727aea436b0cbda3818e1d" 10 | const S_APPBOX_ADID = "e2979b4f96930d23e0358941ca6a883a" 11 | 12 | let tempWind : any = window; 13 | let qq : any = tempWind.qq; 14 | 15 | @ccclass('ADQQ') 16 | export class ADQQ extends ADMini{ 17 | private m_appboxAd: any = null; 18 | 19 | public init(){ 20 | this.m_banner_adid = S_BANNER_ADID; 21 | this.m_interstitial_adid = S_INTERSTITIAL_ADID; 22 | this.m_video_adid.set(ADVideoType.AD_DEFAULT, S_VIDEO_ADID); 23 | 24 | super.init(); 25 | this.m_appboxAd = qq.createAppBox({ 26 | adUnitId : S_APPBOX_ADID, 27 | }) 28 | } 29 | 30 | public createAppBox(){ 31 | this.m_appboxAd.load().then(()=>{ 32 | this.m_appboxAd.show() 33 | }) 34 | } 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini/ADQQ.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "11ad1230-a87a-4385-b9ad-40b3ca58e66d", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini/ADWx.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from "cc" 3 | import { ADVideoType } from "../ADBase"; 4 | import { ADMini } from "./ADMini"; 5 | const {ccclass, property} = cc._decorator; 6 | 7 | const S_BANNER_ADID = "adunit-227da881c809b399" 8 | const S_INTERSTITIAL_ADID = "adunit-f6e88dc3ba29b495" 9 | const S_VIDEO_ADID : any = { 10 | [ADVideoType.AD_SHORT] : "adunit-0de16d4d6d5a80ab", 11 | [ADVideoType.AD_MIDDLE] : "adunit-6401a1d8eceea3af", 12 | [ADVideoType.AD_LONG] : "adunit-09442ca30ad6a123", 13 | } 14 | 15 | @ccclass('ADWx') 16 | export class ADWx extends ADMini{ 17 | protected getBannerSize(){ 18 | return { bannerWidth : 300, bannerHeight : 0 }; 19 | } 20 | public init(){ 21 | this.m_banner_adid = S_BANNER_ADID; 22 | for (const key in S_VIDEO_ADID) { 23 | this.m_video_adid.set(Number(key), S_VIDEO_ADID[key]); 24 | } 25 | this.m_interstitial_adid = S_INTERSTITIAL_ADID; 26 | super.init(); 27 | } 28 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mini/ADWx.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8164e63d-b7bc-4bc8-b6af-ef8b6930a2f3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mmy.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "bc4f25dc-d4dc-4aae-a854-8c52431356f4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/mmy/MMYAndroid.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8c9d4c79-af4c-4f4b-a08e-9d262d550e46", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/navite.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "2682faa3-e608-468e-8142-5332cf636246", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/navite/ADAndroid.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8d3c7592-ae89-4648-96e4-99e8cb613f91", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/navite/ADIOS.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "1b27e27f-3771-4814-8522-93fc87d34b4c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/quick.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "b002f2d4-3595-4ec2-9454-9b9f549e18a3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/quick/ADMeizu.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from "cc" 3 | import { ADVideoType } from "../ADBase"; 4 | import { ADQuick } from "./ADQuick"; 5 | const {ccclass, property} = cc._decorator; 6 | 7 | const S_BANNER_ADID = "jUKduXv9" 8 | const S_VIDEO_ADID = "CQ4fN7FJ" 9 | const S_INTERSTITIAL_ADID = "m95vfqbK" 10 | 11 | let tempWind : any = window; 12 | let mz : any = tempWind.mz; 13 | 14 | @ccclass('ADMeizu') 15 | export class ADMeizu extends ADQuick{ 16 | 17 | public init(){ 18 | this.m_banner_adid = S_BANNER_ADID; 19 | this.m_interstitial_adid = S_INTERSTITIAL_ADID; 20 | this.m_video_adid.set(ADVideoType.AD_DEFAULT, S_VIDEO_ADID); 21 | console.log("############# ADMeizu:init() ", S_BANNER_ADID, S_INTERSTITIAL_ADID); 22 | super.init(); 23 | } 24 | 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/quick/ADMeizu.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f38a6787-ef21-473b-a355-5649c7ff5916", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/adsdk/quick/ADQuick.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "99e1c4d6-7c94-4b34-ac04-5aa3d68e6cc4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "8b5f80cb-d621-4fe9-93a1-d0cc8f32695e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/AnalyticsBase.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b6c42e5b-7c79-428e-bb7f-4d6a5537249a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/AnalyticsInterface.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "27b090d2-fee5-491c-85d8-ec64e81b45e3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/talking.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "c576d5cb-18ab-467f-8fc4-e903c95b88fa", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/talking/TalkAndroid.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "7542e960-0191-45c2-8845-1cedb05b80b0", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/talking/TalkIOS.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f09e5c13-149b-4ecb-b8c3-0c86e50b627c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/umeng.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "7d3f575d-c01c-4b43-8a6d-b330cf4398f4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/umeng/UMengH5.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "6b01a320-6839-41ec-b584-1736b2c78ed7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/umeng/UMengMini.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a333c196-d6d6-48cf-a74a-40d3cd281030", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/umeng/UMengWeb.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from "cc" 3 | import { log } from "../../../log/log"; 4 | import { UMengH5 } from "./UMengH5"; 5 | const {ccclass, property} = cc._decorator; 6 | 7 | export type ListenerFunc = (...param : any)=>void; 8 | 9 | let tempWind : any = window; 10 | 11 | //这个用于web浏览器上测试使用 12 | @ccclass('UMengWeb') 13 | export class UMengWeb extends UMengH5{ 14 | 15 | public init(){ 16 | log.d("############# UMengWeb:init()") 17 | this.loadSdk(window, document, 'script', 'aplus_queue', '203467608') 18 | //集成应用的appKey 19 | tempWind.aplus_queue.push({ 20 | action: 'aplus.setMetaInfo', 21 | arguments: ['appKey', '6166820b14e22b6a4f1f2911'] 22 | }); 23 | 24 | tempWind.aplus_queue.push({ 25 | action: 'aplus.setMetaInfo', 26 | arguments: ['aplus-waiting', '1000'] 27 | }); 28 | //是否开启调试模式 29 | tempWind.aplus_queue.push({ 30 | action: 'aplus.setMetaInfo', 31 | arguments: ['DEBUG', true] 32 | }); 33 | } 34 | 35 | private loadSdk(w:any, d:any, s:string, q:string, i:string){ 36 | w[q] = w[q] || []; 37 | var path = 'https://d.alicdn.com/alilog/mlog/aplus/' + i + '.js'; 38 | console.log("createElement 203467608.js") 39 | var f = d.getElementsByTagName(s)[0],j = d.createElement(s); 40 | j.async = true; 41 | j.id = 'beacon-aplus'; 42 | j.src = path; 43 | console.log("===2123121=======", j.src) 44 | f.parentNode.insertBefore(j, f); 45 | } 46 | 47 | public customEvent(eventId : string, eventData : any){ 48 | let datas : any = {} 49 | if (eventData) { 50 | for (let key in eventData) { 51 | datas[key] = eventData[key] + ""; 52 | } 53 | } 54 | let stringify = JSON.stringify(datas); 55 | log.d("==UMengWeb:customEvent===event:", eventId, " eventData:"+stringify); 56 | 57 | tempWind.aplus_queue.push({ 58 | action: 'aplus.record', 59 | arguments: [eventId, 'CLK', datas] 60 | }); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/analytics/umeng/UMengWeb.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "5293f962-5df9-4524-bc74-51526e767edc", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/channel.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "bed96f71-4275-4b91-88b3-d16cb4af1db7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/login.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "72cb716d-d592-4d18-b34f-01f593c90d3e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/login/LoginAndroid.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b3b39b1d-9e7a-407d-9379-20dbd02e8997", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/login/LoginBase.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:43:04 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 12:33:10 6 | * @Description: file content 7 | */ 8 | 9 | import * as cc from "cc" 10 | import { log } from "../../log/log"; 11 | import { EventDispatcher } from "../../frame"; 12 | import { Store } from "../../utils/util/Store"; 13 | import { LoginWay } from "../../../config/PlatformConfig"; 14 | const {ccclass, property} = cc._decorator; 15 | 16 | 17 | export type ListenerFunc = (...param : any)=>void; 18 | 19 | @ccclass('LoginBase') 20 | export class LoginBase { 21 | protected m_delegate!: EventDispatcher; 22 | 23 | public init(){ 24 | log.d("############# LoginBase:init()") 25 | } 26 | 27 | public setDelegate(delegate:EventDispatcher){ 28 | this.m_delegate = delegate; 29 | } 30 | 31 | //获得游客登录token 32 | public getTouristToken(){ 33 | return Store.getInstance().getStringItem("touristCode", ""); 34 | } 35 | 36 | //检测应用是否存在 37 | public checkAppExist(loginWay : LoginWay){ 38 | return true; 39 | } 40 | 41 | //渠道登录 42 | public login(loginWay : LoginWay, doneCallback : ListenerFunc){ 43 | 44 | } 45 | 46 | //游客绑定账号 47 | public bindAccount(loginWay : LoginWay, doneCallback : ListenerFunc){ 48 | 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/login/LoginBase.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "45661b16-0f87-4006-946d-bc1526b7d63b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/login/LoginIOS.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d42b401f-3abf-470b-a5c7-903234402e65", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/minigame.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "f72d9f3e-583c-486c-8476-118d26a99b51", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/minigame/platformByte.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "29409e2f-27b5-4bc4-bad9-149668475a70", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/minigame/platformQQ.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "78f590db-fcb1-43b1-90bd-848343c62409", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/minigame/platformWx.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "098c3fa3-96c9-439b-bd35-c6d8d94ea422", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platform.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4b82b44d-301b-4067-bd63-ea58d4891c87", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformAndroid.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "977c7e33-182a-4c30-a5cf-9558e47e2622", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformBase.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "aa47de17-88e9-4fed-a70f-91ee834d88b9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformH5.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "eaaa1d8c-2d10-4d7b-bfd8-850f1df65402", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformIOS.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:43:04 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 09:59:32 6 | * @Description: file content 7 | */ 8 | 9 | import * as cc from 'cc'; 10 | import { utils } from '../utils/utils'; 11 | import { LoginIOS } from './login/LoginIOS'; 12 | import { PlatformBase, DoneFunc } from './platformBase'; 13 | import { ChannelType, LoginWay, PlatformType } from '../../config/PlatformConfig'; 14 | 15 | const { ccclass, property } = cc._decorator; 16 | 17 | 18 | @ccclass('PlatformIOS') 19 | export class PlatformIOS extends PlatformBase{ 20 | private m_loginImp : LoginIOS = null!; 21 | 22 | constructor(){ 23 | super(); 24 | this.m_loginImp = new LoginIOS(); 25 | } 26 | 27 | public init(){ 28 | super.init(); 29 | this.m_loginImp.setDelegate(this); 30 | } 31 | 32 | public isIOS(): boolean { 33 | return true; 34 | } 35 | 36 | //获得平台信息 37 | public getPlatform() : PlatformType{ 38 | return PlatformType.IOS; 39 | } 40 | 41 | //IOS渠道 42 | public getChannel(){ 43 | return ChannelType.Apple; 44 | } 45 | 46 | //唯一码用于游客登录 47 | public getUniqueCode(doneCallback : DoneFunc){ 48 | let stringify = JSON.stringify({}) 49 | let code = jsb.reflection.callStaticMethod('AppUtil', 'getUniqueCode:', stringify); 50 | let uniqueCode = code + +'#'+ utils.timeus(); 51 | doneCallback(uniqueCode) 52 | } 53 | 54 | //检测应用是否存在 55 | public checkAppExist(loginWay : LoginWay){ 56 | return this.m_loginImp.checkAppExist(loginWay); 57 | } 58 | 59 | //游戏登录 60 | public login(loginWay : LoginWay, doneCallback : DoneFunc){ 61 | return this.m_loginImp.login(loginWay, doneCallback); 62 | } 63 | 64 | //游客绑定账号 65 | public bindAccount(loginWay : LoginWay, doneCallback : DoneFunc){ 66 | return this.m_loginImp.bindAccount(loginWay, doneCallback); 67 | } 68 | 69 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformIOS.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "55c3850b-5b47-4dca-97e5-71fc63bc37a7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformWeb.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:43:04 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 12:32:35 6 | * @Description: file content 7 | */ 8 | 9 | import * as cc from 'cc'; 10 | import { LoginWay, PlatformType } from '../../config/PlatformConfig'; 11 | import { PlatformBase } from './platformBase'; 12 | const { ccclass, property } = cc._decorator; 13 | 14 | @ccclass('PlatformWeb') 15 | export class PlatformWeb extends PlatformBase{ 16 | 17 | public getPlatform() : PlatformType{ 18 | return PlatformType.Web; 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/platformWeb.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "63f0eeaf-2d2e-42d6-8f47-5c89c1f8ba7a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/quickgame.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "4e719616-1d31-487a-aca5-973ab5420b2c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/platform/quickgame/platformMZ.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "c65c11ae-3c08-4f6e-85b0-deed155d3179", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/update.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "b8f23829-590c-4612-afb5-7efed1f10cd9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/update/UpdateManager.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "0fc0e05d-da0d-44f0-aa85-314671bd6a12", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "ae9d219c-c0e3-4313-ba29-080ed2b54c8a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/autonode.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "88b40b1a-6799-4d04-9a2c-f33454a0eab7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/autonode/AutoNode.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from 'cc'; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | export enum AutoNodeEvent{ 6 | ON_LOAD, 7 | ON_START, 8 | ON_DESTROY, 9 | 10 | ON_ENABLE, 11 | ON_DISABLE, 12 | } 13 | export type AutoNodeEventCallback = ( event : AutoNodeEvent)=>void; 14 | 15 | @ccclass('AutoNode') 16 | export class AutoNode extends cc.Component { 17 | private m_callback : AutoNodeEventCallback = null!; 18 | 19 | setCallback( callback : AutoNodeEventCallback){ 20 | this.m_callback = callback; 21 | } 22 | 23 | onLoad(){ 24 | this.m_callback && this.m_callback(AutoNodeEvent.ON_LOAD); 25 | } 26 | 27 | start () { 28 | this.m_callback && this.m_callback(AutoNodeEvent.ON_START); 29 | } 30 | 31 | onDestroy(){ 32 | this.m_callback && this.m_callback(AutoNodeEvent.ON_DESTROY); 33 | } 34 | 35 | onEnable(){ 36 | this.m_callback && this.m_callback(AutoNodeEvent.ON_ENABLE); 37 | } 38 | 39 | onDisable(){ 40 | this.m_callback && this.m_callback(AutoNodeEvent.ON_DISABLE); 41 | } 42 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/autonode/AutoNode.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d7953834-650f-45bf-98a6-8218b9d19875", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/error.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "b6e54b2d-d127-4b06-ac96-55da5f97cad7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "010f34a8-7e13-40dc-99a3-aadfa89ddd52", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper/BgAdapter.ts: -------------------------------------------------------------------------------- 1 | // create by xzben 2 | import * as cc from 'cc'; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass('BgAdapter') 6 | export class BgAdapter extends cc.Component { 7 | 8 | start () { 9 | let sp = this.getComponent(cc.Sprite); 10 | if(sp && sp.spriteFrame){ 11 | let height = sp.spriteFrame.height; 12 | let width = sp.spriteFrame.width; 13 | let framesize = cc.view.getDesignResolutionSize(); 14 | 15 | let scale = 1; 16 | if(framesize.width > width || framesize.height > height){ 17 | let sw = framesize.width/width 18 | let sh = framesize.height/height; 19 | scale = sw > sh ? sw : sh; 20 | } 21 | sp.node.scale = cc.v3(scale, scale, scale); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper/BgAdapter.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "1214f1e7-5899-4b37-917d-a38c28fe69bd", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper/SafeArea.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from 'cc'; 3 | import { platform } from '../../platform/platform'; 4 | const { ccclass, property, requireComponent } = cc._decorator; 5 | 6 | @ccclass('SafeArea') 7 | @requireComponent(cc.Widget) 8 | export class SafeArea extends cc.Component { 9 | public onEnable () { 10 | this.updateArea(); 11 | cc.view.on('canvas-resize', this.updateArea, this); 12 | } 13 | 14 | public onDisable () { 15 | cc.view.off('canvas-resize', this.updateArea, this); 16 | } 17 | 18 | /** 19 | * @en Adapt to safe area 20 | * @zh 立即适配安全区域 21 | * @method updateArea 22 | * @example 23 | * let safeArea = this.node.addComponent(cc.SafeArea); 24 | * safeArea.updateArea(); 25 | */ 26 | public updateArea () { 27 | let widget = this.node.getComponent(cc.Widget) as cc.Widget; 28 | if (!widget) { 29 | return; 30 | } 31 | let winSize = cc.view.getVisibleSize(); 32 | let screenWidth = winSize.width; 33 | let screenHeight = winSize.height; 34 | let safeArea = platform.getInstance().getSafeArea(); 35 | 36 | widget.top = screenHeight - safeArea.y - safeArea.height; 37 | widget.bottom = safeArea.y; 38 | widget.left = safeArea.x; 39 | widget.right = screenWidth - safeArea.x - safeArea.width; 40 | widget.updateAlignment(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper/SafeArea.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b595355f-ec98-4794-918e-f1a15c4cfe93", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper/UI3DMesh.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from 'cc'; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass('UI3DMesh') 6 | export class UI3DMesh extends cc.Component { 7 | onLoad(){ 8 | this.addUIMesh(this.node); 9 | } 10 | 11 | public changeShow3DNode( node : cc.Node){ 12 | this.node.removeAllChildren(); 13 | this.node.addChild(node); 14 | this.addUIMesh(node); 15 | } 16 | 17 | private addUIMesh( node : cc.Node){ 18 | if(node.getComponent(cc.MeshRenderer) != null && node.getComponent(cc.UIMeshRenderer) == null){ 19 | node.addComponent(cc.UIMeshRenderer); 20 | } 21 | 22 | node.children.forEach(( node : cc.Node)=>{ 23 | this.addUIMesh(node); 24 | }) 25 | } 26 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/helper/UI3DMesh.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "7be706d4-3028-4753-a9cf-9a5459046284", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "b2609eb9-b4c6-4089-b5c7-71bacb8ac2d6", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MergeMesh.ts: -------------------------------------------------------------------------------- 1 | 2 | import * as cc from 'cc'; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass('MergeMesh') 6 | export class MergeMesh extends cc.Component { 7 | 8 | @property(cc.Node) 9 | private m_source : cc.Node = null!; 10 | 11 | @property(cc.Node) 12 | private m_dest : cc.Node = null!; 13 | start () { 14 | cc.BatchingUtility.batchStaticModel(this.m_source, this.m_dest); 15 | } 16 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MergeMesh.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a3b5b50c-bc98-40d3-b0f3-1ef9e2c097fc", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MultiMeshRender.ts: -------------------------------------------------------------------------------- 1 | import * as cc from "cc" 2 | import { updateMeshTextureIdx } from "./MultiTexure"; 3 | const { ccclass, property, executeInEditMode} = cc._decorator; 4 | 5 | @ccclass("MultiMeshRender") 6 | @executeInEditMode 7 | export class MultiMeshRender extends cc.MeshRenderer{ 8 | @property(cc.CCInteger) 9 | private m_textureIdx : number = 0; 10 | 11 | protected _onMeshChanged (old: cc.Mesh | null) { 12 | updateMeshTextureIdx(this.mesh, this.m_textureIdx); 13 | } 14 | 15 | public onLoad(){ 16 | if (this.mesh) { 17 | updateMeshTextureIdx(this.mesh, this.m_textureIdx); 18 | } 19 | this._updateModels(); 20 | this._updateCastShadow(); 21 | this._updateReceiveShadow(); 22 | } 23 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MultiMeshRender.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a5fbf9ce-0b07-43b3-86af-2625e35fa744", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MultiSkinnedMeshRender.ts: -------------------------------------------------------------------------------- 1 | import * as cc from "cc" 2 | import { updateMeshTextureIdx } from "./MultiTexure"; 3 | const { ccclass, property, executeInEditMode} = cc._decorator; 4 | 5 | @ccclass("MultiSkinnedMeshRender") 6 | @executeInEditMode 7 | export class MultiSkinnedMeshRender extends cc.SkinnedMeshRenderer{ 8 | @property(cc.CCInteger) 9 | private m_textureIdx : number = 0; 10 | 11 | protected _onMeshChanged (old: cc.Mesh | null) { 12 | updateMeshTextureIdx(this.mesh, this.m_textureIdx); 13 | } 14 | 15 | public onLoad(){ 16 | if (this.mesh) { 17 | updateMeshTextureIdx(this.mesh, this.m_textureIdx); 18 | } 19 | this._updateModels(); 20 | this._updateCastShadow(); 21 | this._updateReceiveShadow(); 22 | } 23 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MultiSkinnedMeshRender.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f29511f5-08ac-4a3c-b55f-d042318e19a5", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/mesh/MultiTexure.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ea1ce11f-49c1-41ca-bca8-0c237f8c2a47", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "8ff982d1-7f25-4cb4-9dad-ecdca532327c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util/FileUtils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "90d6864a-d5cb-45ef-a6cf-d16e8e04a44e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util/HttpUtils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ddf6dda9-07d4-4295-8dd4-8ce45b78dc35", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "moduleId": "project:///assets/scripts/utils/util/HttpUtils.js", 10 | "importerSettings": 7, 11 | "simulateGlobals": [] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util/S2RpnUtils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f3bc7c02-9d12-449c-8043-06778b90d8e1", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util/Store.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "fcc6e461-af04-40f4-aac6-d3e3222c7aee", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util/TimeUtils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d61ea116-4e6d-4b38-a2bd-e30e5bd344c8", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/util/TouchUtils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "edaae102-7450-4d3d-8b35-33682ffbfbee", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/utils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ecfb7fd6-020f-4d03-b029-38cc7a46baf3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "moduleId": "project:///assets/scripts/utils/utils.js", 10 | "importerSettings": 7, 11 | "simulateGlobals": [] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "7cc12390-7274-4d17-80bb-f5189104ec96", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/AlertTips.ts: -------------------------------------------------------------------------------- 1 | import * as cc from 'cc'; 2 | import { BaseView } from '../../frame/BaseView'; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass("AlertTips") 6 | export class AlertTips extends BaseView{ 7 | @property(cc.Label) 8 | private m_label : cc.Label | null = null; 9 | 10 | setText( text : string ){ 11 | if(this.m_label) 12 | this.m_label.string = text; 13 | } 14 | 15 | public onUpdateData( params : any){ 16 | this.setText(params.tips); 17 | } 18 | 19 | protected checkAddBlockNode(){} //置空添加屏蔽 20 | 21 | onLoad(){ 22 | super.onLoad(); 23 | let bg = this.node.getComponent(cc.Sprite); 24 | if(bg) 25 | { 26 | bg.color = cc.color(255,255,255,255) 27 | cc.tween(this.node) 28 | .delay(0.4) 29 | .by(0.6, { position : cc.v3(0,220,0)}) 30 | .delay(1) 31 | .by(0.3, { position : cc.v3(0,200,0)}) 32 | .removeSelf() 33 | .start(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/AlertTips.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "22761939-c94a-489c-8f8a-0ee8a1490da6", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "moduleId": "project:///assets/scripts/utils/view/AlertTips.js", 10 | "importerSettings": 7, 11 | "simulateGlobals": [] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/AlterTipsWrap.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:43:26 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 12:29:55 6 | * @Description: file content 7 | */ 8 | import { ErrorCodeMap } from "../../../config/error/ErrorCodeMap"; 9 | import { UIMgr } from "../../core/UIMgr" 10 | 11 | export let AlterTipsWrap = { 12 | show( tips : string){ 13 | UIMgr.getInstance().openView("base/alertTips/alter_tips", { tips : tips }, 10) 14 | }, 15 | 16 | showByErrorCode( errocode : number){ 17 | let msg = ErrorCodeMap[errocode] || ""+errocode 18 | AlterTipsWrap.show(msg); 19 | } 20 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/AlterTipsWrap.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "0f4688a7-1514-4cac-a150-c128015c616a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/AutoView.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html 3 | // Learn Attribute: 4 | // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html 5 | // Learn life-cycle callbacks: 6 | // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html 7 | import * as cc from 'cc'; 8 | const { ccclass } = cc._decorator; 9 | 10 | type AutoViewCallback = (...param : any)=>void; 11 | 12 | @ccclass("AutoView") 13 | export class AutoView extends cc.Component{ 14 | protected m_openCallback : AutoViewCallback | null = null; 15 | protected m_closeCallback : AutoViewCallback | null = null; 16 | 17 | public setOpenCallback(openCallback:AutoViewCallback){ 18 | this.m_openCallback = openCallback; 19 | } 20 | 21 | 22 | public setCloseCallback(closeCallback:AutoViewCallback){ 23 | this.m_closeCallback = closeCallback; 24 | } 25 | 26 | start(){ 27 | if(this.m_openCallback != null) this.m_openCallback(); 28 | } 29 | 30 | onDestroy(){ 31 | if(this.m_closeCallback != null) this.m_closeCallback(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/AutoView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ad316d39-bf59-44a4-bec2-cf046ea35b50", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/LoadingView.ts: -------------------------------------------------------------------------------- 1 | import * as cc from "cc" 2 | import { BaseView } from "../../frame/BaseView"; 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass("LoadingView") 6 | export class LoadingView extends BaseView{ 7 | @property(cc.Label) 8 | private m_tips : cc.Label | null = null; 9 | 10 | @property(cc.Node) 11 | private m_tipsBg : cc.Node | null = null; 12 | 13 | onUpdateData( params : any){ 14 | this.setTxtLoading(params.tips); 15 | } 16 | 17 | onLoad() { 18 | super.onLoad(); 19 | } 20 | 21 | setTxtLoading(msg : string){ 22 | if(this.m_tipsBg) 23 | this.m_tipsBg.active = false; 24 | 25 | if(this.m_tips) 26 | this.m_tips.string = msg; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/LoadingView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "94b517e9-1427-46f3-8d43-d5d1d9300231", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "moduleId": "project:///assets/scripts/utils/view/LoadingView.js", 10 | "importerSettings": 7, 11 | "simulateGlobals": [] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/LoadingViewWrap.ts: -------------------------------------------------------------------------------- 1 | import { UIMgr } from "../../core/UIMgr" 2 | 3 | let s_count = 0; 4 | let s_tips : string = ""; 5 | 6 | export let LoadingViewWrap = { 7 | checkShowAfterChangeScene(){ 8 | if( s_count > 0){ 9 | UIMgr.getInstance().openSingleView("base/loading/loading", { tips : s_tips }) 10 | } 11 | }, 12 | 13 | show( tips : string = ""){ 14 | s_tips = tips; 15 | s_count ++; 16 | console.log("LoadingViewWrap:show", s_count) 17 | UIMgr.getInstance().openSingleView("base/loading/loading", { tips : tips }) 18 | }, 19 | 20 | close(){ 21 | s_count--; 22 | console.log("LoadingViewWrap:close", s_count) 23 | if(s_count <= 0){ 24 | UIMgr.getInstance().closeView("base/loading/loading"); 25 | } 26 | }, 27 | 28 | isLoading(){ 29 | return s_count > 0; 30 | } 31 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/LoadingViewWrap.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "1b5cc7ca-f3ef-426f-9f45-d6675767ab3f", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/MsgBox.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a1d64572-bca5-42d9-84a4-56d97ac90bd4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "moduleId": "project:///assets/scripts/utils/view/MsgBox.js", 10 | "importerSettings": 7, 11 | "simulateGlobals": [] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/MsgBoxWrap.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:43:26 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 12:29:38 6 | * @Description: file content 7 | */ 8 | import { ErrorCodeMap } from "../../../config/error/ErrorCodeMap" 9 | import { UIMgr } from "../../core/UIMgr" 10 | import { MSG_CONFIRM_CALLBACK, MSG_CANCEL_CALLBACK } from "../view/MsgBox" 11 | export let MsgBoxWrap = { 12 | 13 | showConfirm( content : string, confirm : MSG_CONFIRM_CALLBACK = ()=>{}, autoclose : boolean = true){ 14 | UIMgr.getInstance().openView("base/msgbox/msgbox", { content : content, confirm : confirm, autoclose : autoclose }) 15 | }, 16 | 17 | showConfirmCancel( content : string, confirm : MSG_CONFIRM_CALLBACK = ()=>{}, cancel : MSG_CANCEL_CALLBACK = ()=>{}, autoclose : boolean = true){ 18 | UIMgr.getInstance().openView("base/msgbox/msgbox", { content : content, confirm : confirm, cancel : cancel, autoclose : autoclose }) 19 | }, 20 | 21 | showConfirmByErrorCode( errocode : number, confirm : MSG_CONFIRM_CALLBACK = ()=>{}, autoclose : boolean = true){ 22 | let msg = ErrorCodeMap[errocode] || ""+errocode 23 | MsgBoxWrap.showConfirm(msg, confirm, autoclose); 24 | }, 25 | 26 | showConfirmCancelByErrorCode( errocode : number, confirm : MSG_CONFIRM_CALLBACK = ()=>{}, cancel : MSG_CANCEL_CALLBACK = ()=>{}, autoclose : boolean = true){ 27 | let msg = ErrorCodeMap[errocode] || ""+errocode 28 | MsgBoxWrap.showConfirmCancel(msg, confirm, cancel, autoclose); 29 | }, 30 | 31 | showNotice( content : string, confirm : MSG_CONFIRM_CALLBACK = ()=>{}, autoclose : boolean = true){ 32 | UIMgr.getInstance().openView("base/msgbox/noticebox", { content : content, confirm : confirm, autoclose : autoclose }) 33 | }, 34 | 35 | showSingleNotice( content : string, confirm : MSG_CONFIRM_CALLBACK = ()=>{}, autoclose : boolean = true){ 36 | UIMgr.getInstance().openSingleView("base/msgbox/noticebox", { content : content, confirm : confirm, autoclose : autoclose }) 37 | }, 38 | } -------------------------------------------------------------------------------- /client/assets/scripts/base/utils/view/MsgBoxWrap.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "304de000-6ffe-456b-a342-407199e31415", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "simulateGlobals": [] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /client/assets/scripts/config.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "ea6ab100-92eb-4170-bbe5-ab3116433eb5", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/config/Env.ts: -------------------------------------------------------------------------------- 1 | export enum ENV { 2 | DEBUG, 3 | INNER_TEST, 4 | OUT_TEST, 5 | RELEASE, 6 | } 7 | 8 | let cur_env = ENV.RELEASE; 9 | 10 | export function setCurEnv( env : ENV){ 11 | cur_env = env; 12 | } 13 | 14 | export function getCurEnv(): ENV{ 15 | return cur_env; 16 | } 17 | 18 | -------------------------------------------------------------------------------- /client/assets/scripts/config/Env.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4c356b91-0266-4841-8c2e-2612cf6f19cd", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/config/NetworkConfig.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ab2cbb27-21f6-4386-9fdb-f6afe03dc2af", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/config/PlatformConfig.ts: -------------------------------------------------------------------------------- 1 | 2 | //平台类型 3 | export enum PlatformType{ 4 | WIN32 = 1, //电脑 5 | Android = 2, //安卓 6 | IOS = 3, //苹果 7 | Web = 4, //浏览器 8 | H5 = 5, //小游戏 9 | QUICK = 6, //快游戏 10 | } 11 | 12 | //渠道名称(安卓平台渠道映射对应的安卓渠道配置) 13 | export enum ChannelType{ 14 | MiniWX = 'mini_wx', //微信小游戏 15 | MiniQQ = 'mini_qq', //QQ小游戏 16 | MiniByte = 'mini_byte', //字节跳动小游戏 17 | QuickMEIZU = 'quick_meizu', //魅族快游戏 18 | 19 | Official = 'official', //官方渠道 20 | TapTap = 'taptap', //TapTap 21 | KuaiBao = 'kuaibao', //快爆 22 | MoMoYu = 'momoyu', //摸摸鱼 23 | GooglePlay = 'googlePlay', //googlePlay 24 | 25 | Apple = 'apple', //IOS官方渠道 26 | } 27 | 28 | //游戏登录方式 29 | export enum LoginWay{ 30 | QUICK = 0, //快速登录 31 | ACCOUNT = 1, //账号登录 32 | WEIXIN = 2, //微信登录 33 | TAPTAP = 3, //taptap登录 34 | MINI_WEIXIN = 4, //微信小游戏登录 35 | MINI_QQ = 5, //QQ小游戏登录 36 | MINI_BYTE = 6, //字节小游戏登录 37 | WEB_MEIZU = 7, //魅族快游戏登录 38 | MOMOYU = 8, //摸摸鱼sdk登录 39 | GOOGLE_PLAY = 9, //谷歌play 40 | IOS_APPLE = 10, //ios apple登录 41 | 42 | TOURIST = 99, //游客登录 43 | RELATION = 100, //账号关联 44 | } 45 | 46 | //渠道对应app包名 用于校验登录是否存在第三方应用 47 | export enum AppPackageName{ 48 | WEIXIN = "com.tencent.mm", 49 | TAPTAP = "com.taptap", 50 | MOMOYU = "com.playgame.havefun", 51 | } 52 | 53 | 54 | -------------------------------------------------------------------------------- /client/assets/scripts/config/PlatformConfig.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "20d86689-fe92-4ca0-8e23-ce9b1042e3a9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/config/error.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "79365158-530e-41e8-ab8d-bfdac7823ff1", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/config/error/ErrorCodeMap.ts: -------------------------------------------------------------------------------- 1 | export let ErrorCodeMap : any = {}; 2 | 3 | ErrorCodeMap[0] = "成功" 4 | 5 | ErrorCodeMap[1] = "登录奖励今天已经领取过了" 6 | 7 | ErrorCodeMap[2] = "转盘活动,消耗物品不够失败" 8 | 9 | ErrorCodeMap[3] = "转盘活动,随机物品异常,没随机到一个有效的物品" 10 | 11 | ErrorCodeMap[4] = "设置玩家当前战斗使用英雄,但是设置的英雄玩家没有" 12 | 13 | ErrorCodeMap[5] = "广告未看完获取奖励失败" 14 | 15 | ErrorCodeMap[6] = "英雄ID不存在" 16 | 17 | ErrorCodeMap[7] = "当前玩家正在匹配中" 18 | 19 | ErrorCodeMap[8] = "当前购买英雄的方式不支持" 20 | 21 | ErrorCodeMap[9] = "钻石不够" 22 | 23 | ErrorCodeMap[10] = "登录奖励不能多倍领取" 24 | 25 | ErrorCodeMap[11] = "游戏战绩奖励不能多倍领取" 26 | 27 | ErrorCodeMap[12] = "体力不足无法战斗" 28 | 29 | ErrorCodeMap[13] = "获取体力次数超过限制" 30 | 31 | ErrorCodeMap[14] = "获取钻石次数超过限制" 32 | 33 | ErrorCodeMap[15] = "无法找到成就" 34 | 35 | ErrorCodeMap[16] = "成就奖励已经领取过了" 36 | 37 | ErrorCodeMap[17] = "合成英雄需要更多英雄碎片" 38 | 39 | ErrorCodeMap[18] = "转盘累计奖励领取失败,还未满足累计次数" 40 | 41 | ErrorCodeMap[19] = "转盘累计奖励领取失败,已经领取过了" 42 | 43 | ErrorCodeMap[20] = "转盘累计奖励领取失败,今天转盘次数使用完了" 44 | 45 | ErrorCodeMap[21] = "技能不能升级,一般是因为没有配置" 46 | 47 | ErrorCodeMap[22] = "技能升级依赖角色等级" 48 | 49 | ErrorCodeMap[23] = "技能升级所需消耗不够" 50 | 51 | ErrorCodeMap[24] = "技能已经到达最大等级" 52 | 53 | ErrorCodeMap[25] = "实名验证身份证号码无效" 54 | 55 | ErrorCodeMap[26] = "实名验证身份证号码和名字不匹配" 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /client/assets/scripts/config/error/ErrorCodeMap.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "bed31efa-fe13-4427-8066-d9eca297e020", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/config/error/ErrorCodeType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum ErrorCodeType{ 3 | DIAMOND_NOT_ENOUGH = 9, 4 | POWER_NOT_ENOUGH = 12, 5 | } 6 | 7 | -------------------------------------------------------------------------------- /client/assets/scripts/config/error/ErrorCodeType.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8a30e6bb-cbad-4565-94ff-ecbd8ca9a2cf", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "3709809e-e41a-49ad-ac11-0ea5259c140e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "e42cbd6e-ff70-4e20-8e4a-510ef0f682e7", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/GameService.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "efcef7db-1e62-4a71-ae1d-df6b67ada9ea", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/common.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "c3170363-da2f-43c9-bd56-42c7c7fffece", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/common/BattleBaseComponent.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 14:53:47 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { BaseView } from '../../../base/frame'; 10 | import { BattleLauchEvent } from '../event/BattleLauchEvent'; 11 | const { ccclass, property } = cc._decorator; 12 | 13 | @ccclass('BattleBaseComponent') 14 | export class BattleBaseComponent extends BaseView { 15 | 16 | public addBattleEventListener(event : BattleLauchEvent, func : Function, target : unknown) 17 | { 18 | let curScene = cc.director.getScene()!; 19 | curScene.on(event, func, target ); 20 | } 21 | 22 | public dispatchEvent( event : BattleLauchEvent, ... param : any[]) 23 | { 24 | let curScene = cc.director.getScene()!; 25 | curScene.emit(event, ...param ); 26 | } 27 | 28 | protected start() { 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/common/BattleBaseComponent.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8798c0b7-2ba5-48d9-bfc7-58c81e6467dc", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/event.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "52713eaa-0e7e-4a11-82d5-cac39a8e57a5", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/event/BattleLauchEvent.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 19:40:45 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 14:50:22 6 | * @Description: file content 7 | */ 8 | export enum BattleLauchEvent{ 9 | BattleStartMatch = "BattleStartMatch", //战斗进入匹配 step 1 10 | BattleMatchDone = "BattleMatchDone", //战斗匹配成功 step 2 11 | 12 | LoadingBattleSceneStart = "LoadingBattleSceneStartLoadingBattleSceneStart", //开始加载战斗数据 step 3 13 | LoadingBattleConfigProcess = "LoadingBattleConfigProcess", //加载配置进度更新 step 4 14 | LoadingBattleSceneProcess = "LoadingBattleSceneProcess", //加载场景进度更新 step 5 15 | LoadingBattleSceneDone = "LoadingBattleSceneDone", //战斗场景数据加载完成 step 6 16 | 17 | WaitAllReadyProcess = "WaitAllReadyProcess", //等待所有人进入场景准备完毕精度 step 7 18 | BattleStart = "BattleStart", //所有人都加载完成游戏开始 step 8 游戏开始 19 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/event/BattleLauchEvent.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "58100577-35c7-412f-9e2b-b267f6588604", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/lauch.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "4fe797d3-f4a4-4db8-931d-11a08c84881b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/lauch/BattleLauch.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "6517a023-3561-44d5-bee7-732d8eed5702", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "1c2428c4-f437-4f70-88bb-04da2228da20", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model/JsonDefineModel.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-13 14:19:30 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 14:34:18 6 | * @Description: file content 7 | */ 8 | export interface JsonNamePath{ 9 | name : string; 10 | path : string; 11 | }; 12 | 13 | export interface LauchJsonConfig{ 14 | engine : string; 15 | math : JsonNamePath[]; 16 | entitys : JsonNamePath[]; 17 | objects : JsonNamePath[]; 18 | special : JsonNamePath[]; 19 | ai : JsonNamePath[]; 20 | }; 21 | 22 | 23 | export interface EngineJsonConfig{ 24 | systems : { name : string, class : string}[]; 25 | }; 26 | 27 | export interface SceneJsonConfig{ 28 | id : number; 29 | name : string; 30 | path : string; 31 | battle_time : number; 32 | revive_time : number; 33 | playernum : number; 34 | ready_timeout : number; 35 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model/JsonDefineModel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "c55172ca-4385-42b6-8129-6030bd302c71", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model/LauchModel.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-13 14:07:22 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 15:10:35 6 | * @Description: file content 7 | */ 8 | 9 | export interface BattleSetting{ 10 | }; 11 | 12 | export interface HeroLauchInfo{ 13 | uid : number; 14 | hero : number; 15 | weapon : number; 16 | level : number; 17 | group : number; 18 | ai : boolean; 19 | } 20 | 21 | export interface LauchLogicConfig 22 | { 23 | engine : any; 24 | math : { [key : string] : any}; 25 | entitys : { [ key : string] : any }; 26 | objects : { [ key : string] : any[] }; 27 | special : { [ key : string] : any }; 28 | ai : { [ key : string] : any}; 29 | } 30 | 31 | export interface LauchData 32 | { 33 | scene : number; 34 | randomseed : number; 35 | config : LauchLogicConfig; 36 | heros : HeroLauchInfo[]; 37 | setting : BattleSetting; 38 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model/LauchModel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "2f6ff491-f7cd-4d48-8fd2-d16ed5b85ac3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model/modelDefine.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 20:27:16 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 14:07:51 6 | * @Description: file content 7 | */ 8 | 9 | 10 | export interface HeroInfo 11 | { 12 | id : number; 13 | } 14 | 15 | export interface MatchData 16 | { 17 | sceneId : number; //匹配的战斗场景id 18 | randomseed : number; //此局战斗的随机种子 19 | heros : HeroInfo[]; //此局战斗所有角色信息 20 | } 21 | 22 | export interface LoadingHeroInfo 23 | { 24 | id : number; 25 | percent : number; 26 | } 27 | 28 | export interface LoadingProcessInfo 29 | { 30 | heros : LoadingHeroInfo[]; 31 | } 32 | 33 | export interface PosConfig{ 34 | x : number; 35 | y : number; 36 | z : number; 37 | } 38 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/model/modelDefine.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f8a4b347-a50a-45af-b5f9-adfd08fa841c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "1d221fc9-05a2-46d2-a4d0-a042c7c245c4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view/loading.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "ecc193f2-1e72-4359-8223-7e1ef12722ef", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view/loading/LoadingBattleView.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-06 20:33:24 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { BattleBaseComponent } from '../../common/BattleBaseComponent'; 10 | import { BattleLauchEvent } from '../../event/BattleLauchEvent'; 11 | import { MatchData } from '../../model/modelDefine'; 12 | const { ccclass, property } = cc._decorator; 13 | 14 | @ccclass('LoadingBattleView') 15 | export class LoadingBattleView extends BattleBaseComponent { 16 | onLoad() 17 | { 18 | this.node.active = false; 19 | this.addBattleEventListener(BattleLauchEvent.BattleMatchDone, this.handleMatchDone, this) 20 | } 21 | 22 | handleLoadingProcess( ) 23 | { 24 | 25 | } 26 | 27 | handleLoadingDone() 28 | { 29 | 30 | } 31 | 32 | handleMatchDone( matchData : MatchData) 33 | { 34 | this.node.active = true; 35 | } 36 | 37 | start() { 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view/loading/LoadingBattleView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "39ca6dad-862a-4eea-9ec2-781cc5fed219", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view/match.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "8a541513-b9a1-4b85-aa82-726076d17d4c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view/match/MatchView.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-06 20:38:04 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { BattleBaseComponent } from '../../common/BattleBaseComponent'; 10 | import { BattleLauchEvent } from '../../event/BattleLauchEvent'; 11 | import { MatchData } from '../../model/modelDefine'; 12 | const { ccclass, property } = cc._decorator; 13 | 14 | @ccclass('MatchView') 15 | export class MatchView extends BattleBaseComponent { 16 | 17 | onLoad() 18 | { 19 | this.node.active = true; 20 | this.addBattleEventListener(BattleLauchEvent.BattleStartMatch, this.handleStartMatch, this) 21 | this.addBattleEventListener(BattleLauchEvent.BattleMatchDone, this.handleMatchDone, this) 22 | } 23 | 24 | handleMatchDone( matchData : MatchData) 25 | { 26 | this.node.active = false; 27 | } 28 | 29 | handleStartMatch() 30 | { 31 | 32 | } 33 | 34 | start() { 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/battleview/view/match/MatchView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "65eab3f7-424e-4eeb-a6a8-c3a4ad4e8380", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/common.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "c99315b7-a4b9-4326-afa9-569b26976cb9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/common/ConfigService.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a04d7d5d-7bec-4ee7-b254-3dbe34429eeb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/common/config.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "5ce2d691-2f08-4c0d-8012-b8cbbc1d8bf2", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/common/config/ConfigType.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 12:05:38 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 12:06:00 6 | * @Description: file content 7 | */ 8 | 9 | export type ConfigType = { 10 | id : number, 11 | path : string, 12 | }; -------------------------------------------------------------------------------- /client/assets/scripts/modules/common/config/ConfigType.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "8efbb730-2018-497c-91c1-bb9e0876445e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/hall.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "28d7c029-dee4-4c76-b5d0-4ba6c24b1636", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/hall/HallScene.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-07 09:49:28 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { SceneMgr, UIMgr } from '../../base/core'; 10 | import { BaseScene } from '../../base/frame'; 11 | import { GameService } from '../battleview/GameService'; 12 | const { ccclass, property } = cc._decorator; 13 | 14 | @ccclass('HallScene') 15 | export class HallScene extends BaseScene { 16 | 17 | handleStartGame() 18 | { 19 | SceneMgr.getInstance().pushScene("test#scene") 20 | } 21 | 22 | start() { 23 | 24 | } 25 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/hall/HallScene.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "e6c06a5f-3e89-413a-b735-20abd2df653e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/player.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "ca4869b1-0761-4f29-8856-e3929ca02d0d", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/player/PlayerService.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 12:04:29 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-13 15:20:26 6 | * @Description: file content 7 | */ 8 | 9 | import * as cc from 'cc'; 10 | import { ServiceMgr } from '../../base/core'; 11 | import { BaseService } from '../../base/frame'; 12 | import { HeroLauchInfo } from '../battleview/model/LauchModel'; 13 | const { ccclass, property } = cc._decorator; 14 | 15 | @ccclass('PlayerService') 16 | export class PlayerService extends BaseService { 17 | public static getInstance() : PlayerService{ 18 | return ServiceMgr.getService("PlayerService", PlayerService); 19 | } 20 | 21 | public getBattleHeroInfo() : HeroLauchInfo{ 22 | return { 23 | uid : 10000, 24 | hero : 1, 25 | weapon : 1, 26 | level : 1, 27 | group : 1, 28 | ai : false 29 | }; 30 | } 31 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/player/PlayerService.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4aceaa72-d352-40ef-83be-01f4ac23747d", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/test.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "32fac98d-54c2-4a3c-8c2f-a1fea14319db", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/test/tableview.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "c40b8cae-4a2c-4416-ac11-ec25563a988e", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/test/tableview/ListItem.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-06 18:25:24 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { TableViewCell } from '../../../base/gui'; 10 | import { utils } from '../../../base/utils/utils'; 11 | const { ccclass, property } = cc._decorator; 12 | 13 | @ccclass('ListItem') 14 | export class ListItem extends TableViewCell { 15 | 16 | @property(cc.Sprite) 17 | private m_icon : cc.Sprite = null!; 18 | 19 | @property(cc.Label) 20 | private m_lblIndex : cc.Label = null!; 21 | 22 | @property(cc.Label) 23 | private m_name : cc.Label = null!; 24 | 25 | @property(cc.Label) 26 | private m_num : cc.Label = null!; 27 | 28 | public updateData( idx : number, cellData : { name : string, icon : string, num : number, total : number}, extendData : any){ 29 | this.m_lblIndex.string = idx.toString(); 30 | this.m_name.string = cellData.name; 31 | this.updateSprite(this.m_icon, cellData.icon); 32 | this.m_num.string = `${cellData.num}/${cellData.total}`; 33 | } 34 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/test/tableview/ListItem.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "9e3336c8-23a0-4c70-9707-84cb6779d4bb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/modules/test/tableview/TableViewDrawcallTest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-06-06 18:23:55 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-06-06 18:25:24 6 | * @Description: file content 7 | */ 8 | import * as cc from 'cc'; 9 | import { BaseView } from '../../../base/frame'; 10 | import { TableView } from '../../../base/gui'; 11 | import { utils } from '../../../base/utils/utils'; 12 | const { ccclass, property } = cc._decorator; 13 | 14 | let ICONS = [ 15 | "arrContinuous", 16 | "arrowDouble", 17 | "arrowFire", 18 | "arrowice", 19 | "arrowLaunch", 20 | "arrowLightning", 21 | "arrowPenetrate", 22 | "arrowRebound", 23 | "arrowReverse", 24 | ] 25 | 26 | const ICON_SIZE = ICONS.length; 27 | 28 | @ccclass('TableViewDrawcallTest') 29 | export class TableViewDrawcallTest extends BaseView { 30 | 31 | @property(TableView) 32 | private listview : TableView = null!; 33 | 34 | start() { 35 | let listdata = []; 36 | for(let i = 0; i < 100; i++) 37 | { 38 | let idx = utils.randomInt(1, ICON_SIZE) - 1; 39 | console.log("index", i, idx); 40 | 41 | let item = { 42 | name : ICONS[idx], 43 | icon : `test#skillIcon/${ICONS[idx]}`, 44 | num : utils.randomInt(0, 100), 45 | total : utils.randomInt(100, 1000), 46 | } 47 | listdata.push(item); 48 | } 49 | console.log("litdata", listdata) 50 | this.listview.setData(listdata); 51 | this.listview.reloadData(); 52 | } 53 | } -------------------------------------------------------------------------------- /client/assets/scripts/modules/test/tableview/TableViewDrawcallTest.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d1a3b82a-6420-42c4-929a-31d11b46ab6a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/world.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "86d5de92-58d1-427f-8f07-784d5ac9cb05", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /client/assets/scripts/world/Analytics.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xzben 3 | * @Date: 2022-05-25 11:48:29 4 | * @LastEditors: xzben 5 | * @LastEditTime: 2022-05-25 15:17:46 6 | * @Description: file content 7 | */ 8 | 9 | import * as cc from "cc" 10 | import { platform } from "../base/platform/platform"; 11 | import { ENV, getCurEnv } from "../config/Env"; 12 | const { ccclass, property } = cc._decorator; 13 | 14 | 15 | @ccclass('Analytics') 16 | export class Analytics extends cc.Component { 17 | private static s_instance : Analytics | null = null; 18 | 19 | public static getInstance() : Analytics{ 20 | if(this.s_instance == null){ 21 | this.s_instance = new Analytics(); 22 | } 23 | return this.s_instance; 24 | } 25 | 26 | onLoad(){ 27 | let obj : any = this; 28 | if(Analytics.s_instance == null){ 29 | Analytics.s_instance = this; 30 | } 31 | else{ 32 | console.error("Analytics is repeat load!"); 33 | } 34 | } 35 | 36 | start(){ 37 | // 初始化 , 注意 在调用其他任何方法之前 必须先初始化一次。 38 | let cur_env = getCurEnv(); 39 | platform.getInstance().getASInterface().enableDebug(cur_env != ENV.RELEASE); 40 | } 41 | 42 | registerModule(){ 43 | 44 | } 45 | } -------------------------------------------------------------------------------- /client/assets/scripts/world/Analytics.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "63e6910a-70de-4db0-8d6f-a15c9101f42b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/assets/scripts/world/GameWorld.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.38", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "bb1e7b80-f74c-4f45-ac23-807959ea2b5a", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "GameWorld" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /client/assets/scripts/world/GameWorld.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.23", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b81b1440-e290-4cea-89a6-d3e0f2a8ef15", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /client/extensions/hot-update/builder/config.js: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | let config = {} 5 | config.appname = "bubble" 6 | config.signPath = "native/engine/android/signal/sign.jks" 7 | config.signAlias = "bubble" 8 | config.signPassword = "yckjbubble123" 9 | 10 | 11 | config.ENV_NAME = { 12 | ["0"] : "debug", 13 | ["1"] : "innertest", 14 | ["2"] : "outtest", 15 | ["3"] : "release", 16 | } 17 | 18 | //原生资源更新路径 19 | config.ENV_PACKAGE_ROOT = { 20 | ["0"] : `http://192.168.0.142/nh5game/update/${config.appname}/remote-assets/`, 21 | ["1"] : `http://192.168.0.142/nh5game/update/${config.appname}/remote-assets/`, 22 | ["2"] : `https://testgame.yuch188.com/update/${config.appname}/remote-assets/`, 23 | ["3"] : `https://game.yuch188.com/update/${config.appname}/remote-assets/`, 24 | } 25 | 26 | //小游戏远程资源服根路径 27 | config.MINI_GAME_REMOTE_URL = { 28 | ["0"] : "http://192.168.0.142/nh5game/miniremote/", 29 | ["1"] : "http://192.168.0.142/nh5game/miniremote/", 30 | ["2"] : "https://testgame.yuch188.com/miniremote/", 31 | ["3"] : "https://game.yuch188.com/miniremote/", 32 | } 33 | 34 | module.exports = config 35 | -------------------------------------------------------------------------------- /client/extensions/hot-update/builder/index.js: -------------------------------------------------------------------------------- 1 | exports.configs = { 2 | '*': { 3 | hooks: './builder/hook.js', 4 | options: { 5 | }, 6 | verifyRuleMap: { 7 | EnvCheck : { 8 | message: '环境检测的合法性', 9 | func(val, option) { 10 | console.log("test env", val) 11 | return true; 12 | } 13 | } 14 | } 15 | } 16 | }; 17 | 18 | exports.load = function() { 19 | 20 | } 21 | exports.unload = function() { 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /client/extensions/hot-update/builder/localconfig.js: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | let localconfig = {} 5 | 6 | //用于拷贝小游戏资源到svn资源目录,方便上传提交 7 | localconfig.MINI_GAME_RES_LOCAL_PATH = "F:/work/game-res-test/miniremote/"; 8 | 9 | 10 | module.exports = localconfig 11 | -------------------------------------------------------------------------------- /client/extensions/hot-update/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mysetting", 3 | "author": "xzben", 4 | "version": "0.0.2", 5 | "package_version": 2, 6 | "main": "browser.js", 7 | "description": "用于热更新插件 (3.0.0)", 8 | "contributions": { 9 | "builder": "./builder", 10 | "messages": { 11 | "builder:task-changed": { 12 | "public": true, 13 | "methods": [ 14 | "builder_ready" 15 | ] 16 | } 17 | } 18 | }, 19 | 20 | "dependencies": { 21 | "@types/electron": "^1.6.10", 22 | "@types/fs-extra": "^5.0.4", 23 | "@types/node": "^10.5.2" 24 | } 25 | } -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "frameSynchGame", 3 | "version": "3.5.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "frameSynchGame", 9 | "version": "3.5.0", 10 | "dependencies": { 11 | } 12 | } 13 | }, 14 | "dependencies": { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "creator": { 3 | "version": "3.5.2" 4 | }, 5 | "dependencies": { 6 | "babylonjs": "^5.7.0" 7 | }, 8 | "name": "frameSynchGame", 9 | "uuid": "14db02f7-c81a-44b3-bb1c-a0cba84a347a", 10 | "version": "3.5.2" 11 | } 12 | -------------------------------------------------------------------------------- /client/preview-template/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /client/preview-template/README.md: -------------------------------------------------------------------------------- 1 | # ccc-devtools v3.0.0 2 | Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化缓存资源。 3 | 4 | ## 功能 5 | 6 | - 场景节点树实时显示,节点、组件属性实时显示更改 7 | 8 | ![preview](./screenshots/preview1.gif) 9 | 10 | - 可视化缓存资源 11 | 12 | ![preview](./screenshots/preview2.png) 13 | 14 | - 标记场景中节点位置 15 | 16 | ![preview](./screenshots/preview3.png) 17 | 18 | - 输出节点、组件引用到控制台 19 | 20 | ![preview](./screenshots/preview4.png) 21 | 22 | - cc控制台功能扩展 23 | 24 | ![preview](./screenshots/preview5.png) 25 | 26 | ## 全局使用 27 | 28 | Cocos Creator 3.0暂不支持全局使用 29 | 30 | ## 项目使用 31 | 32 | - `cd PROJECT_PATH && git clone -b v3.0.0 https://github.com/potato47/ccc-devtools.git preview-template` 33 | - 或者手动将本项目对应分支下载到项目目录后,将名字改为 `preview-template` 34 | 35 | ## 自定义 36 | 37 | - 本项目使用了 vue 和 vuetify,可根据 [vuetify 文档](https://vuetifyjs.com/en/getting-started/quick-start/) 对页面进行修改 38 | 39 | - 节点、组件显示属性可在 `config.js` 里配置,目前支持 text,number,textarea,color,bool 几种类型 40 | 41 | ## 需求、更新 42 | 43 | https://github.com/potato47/ccc-devtools 44 | 45 | 如果没有更改源码,可直接在目录下 git pull 46 | 47 | 论坛讨论地址:https://forum.cocos.com/t/creator-20190201/71578 48 | 49 | ## 贡献指南 50 | 51 | - 版本号命名规则 https://semver.org/lang/zh-CN/ ,简单来讲,新功能第二位加一,修复bug第三位加一 52 | 53 | - 如果新增功能请在README中添加预览截图说明 54 | 55 | - 记得更新version.json中的版本号 56 | 57 | ## 前人种树 58 | 59 | - https://github.com/vuejs/vue 60 | 61 | - https://github.com/vuetifyjs/vuetify 62 | -------------------------------------------------------------------------------- /client/preview-template/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <%=title%> 6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | <%- include("./custom.html") %> 22 | 23 | 24 | -------------------------------------------------------------------------------- /client/preview-template/libs/fonts/googlefonts-base.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/libs/fonts/googlefonts-base.woff2 -------------------------------------------------------------------------------- /client/preview-template/libs/fonts/materialdesignicons-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/libs/fonts/materialdesignicons-webfont.eot -------------------------------------------------------------------------------- /client/preview-template/libs/fonts/materialdesignicons-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/libs/fonts/materialdesignicons-webfont.ttf -------------------------------------------------------------------------------- /client/preview-template/libs/fonts/materialdesignicons-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/libs/fonts/materialdesignicons-webfont.woff -------------------------------------------------------------------------------- /client/preview-template/libs/fonts/materialdesignicons-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/libs/fonts/materialdesignicons-webfont.woff2 -------------------------------------------------------------------------------- /client/preview-template/screenshots/preview1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/preview1.gif -------------------------------------------------------------------------------- /client/preview-template/screenshots/preview2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/preview2.png -------------------------------------------------------------------------------- /client/preview-template/screenshots/preview3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/preview3.png -------------------------------------------------------------------------------- /client/preview-template/screenshots/preview4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/preview4.png -------------------------------------------------------------------------------- /client/preview-template/screenshots/preview5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/preview5.png -------------------------------------------------------------------------------- /client/preview-template/screenshots/t1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/t1.png -------------------------------------------------------------------------------- /client/preview-template/screenshots/t2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/t2.png -------------------------------------------------------------------------------- /client/preview-template/screenshots/t3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xzben/creatorFrame/56af2c1b00eccef77af066cb8c435f86715e8ead/client/preview-template/screenshots/t3.png -------------------------------------------------------------------------------- /client/settings/v2/packages/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.3.2" 3 | } 4 | -------------------------------------------------------------------------------- /client/settings/v2/packages/cocos-service.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "3.0.3", 3 | "game": { 4 | "name": "未知游戏", 5 | "app_id": "UNKNOW", 6 | "c_id": "0" 7 | }, 8 | "appConfigMaps": [ 9 | { 10 | "app_id": "UNKNOW", 11 | "config_id": "e5ab36" 12 | } 13 | ], 14 | "configs": [ 15 | { 16 | "app_id": "UNKNOW", 17 | "config_id": "e5ab36", 18 | "config_name": "Default", 19 | "config_remarks": "", 20 | "services": [] 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /client/settings/v2/packages/device.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.1" 3 | } 4 | -------------------------------------------------------------------------------- /client/settings/v2/packages/program.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /client/settings/v2/packages/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.2", 3 | "general": { 4 | "designResolution": { 5 | "width": 640, 6 | "height": 960 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | /* Base configuration. Do not edit this field. */ 3 | "extends": "./temp/tsconfig.cocos.json", 4 | 5 | /* Add your custom configuration here. */ 6 | "compilerOptions": { 7 | "strict": false 8 | } 9 | } 10 | --------------------------------------------------------------------------------