├── .gitignore
├── FguiCreator3.8
├── .gitignore
├── FguiCreator3.8.fairy
├── assets
│ ├── Basics
│ │ ├── btns
│ │ │ ├── ComboBox1.xml
│ │ │ ├── ComboBox1_item.xml
│ │ │ ├── ComboBox1_popup.xml
│ │ │ ├── Font1.fnt
│ │ │ ├── Label1.xml
│ │ │ ├── MovieClip1.jta
│ │ │ ├── ProgressBar1.xml
│ │ │ ├── Slider1.xml
│ │ │ ├── Slider1_grip.xml
│ │ │ ├── btn_close.xml
│ │ │ ├── button1.xml
│ │ │ ├── image_button1.png
│ │ │ └── image_button_close.png
│ │ ├── empty.xml
│ │ ├── header
│ │ │ ├── WindowHeader.xml
│ │ │ └── WindowHeader2.xml
│ │ ├── image
│ │ │ └── image_black.png
│ │ ├── load
│ │ │ ├── LoadUIWindow.xml
│ │ │ └── image_net_wait.png
│ │ ├── package.xml
│ │ └── window
│ │ │ ├── AlertWindow.xml
│ │ │ ├── ToastWindow.xml
│ │ │ └── toast
│ │ │ ├── image_toastbg.png
│ │ │ └── toast.xml
│ ├── Condition
│ │ ├── ConditionWindow.xml
│ │ ├── image
│ │ │ ├── image_reddot_bg.png
│ │ │ └── item_reddot.xml
│ │ └── package.xml
│ ├── Game
│ │ ├── GameWindow.xml
│ │ └── package.xml
│ ├── Home
│ │ ├── HomeWindow.xml
│ │ └── package.xml
│ ├── HotUpdate
│ │ ├── HotUpdateWindow.xml
│ │ └── package.xml
│ ├── MiniGame
│ │ ├── MiniGameWindow.xml
│ │ └── package.xml
│ ├── Socket
│ │ ├── SocketTestWindow.xml
│ │ └── package.xml
│ └── Window
│ │ ├── CloseAllWindow.xml
│ │ ├── CloseOneWindow.xml
│ │ ├── CustomComponents.xml
│ │ ├── HideAllWindow.xml
│ │ ├── HideOneWindow.xml
│ │ ├── PopWindow.xml
│ │ ├── PopWindowHeader1.xml
│ │ ├── PopWindowHeader2.xml
│ │ ├── UIBaseWindow.xml
│ │ ├── image
│ │ └── Icon-60@2x.png
│ │ └── package.xml
└── settings
│ ├── Adaptation.json
│ ├── Common.json
│ ├── CustomProperties.json
│ ├── Publish.json
│ └── i18n.json
├── README.md
├── assets
├── FirstScene.meta
├── FirstScene
│ ├── loading_bg.jpg
│ ├── loading_bg.jpg.meta
│ ├── res.meta
│ └── res
│ │ ├── auto-atlas.pac
│ │ ├── auto-atlas.pac.meta
│ │ ├── image_age_tip.png
│ │ ├── image_age_tip.png.meta
│ │ ├── image_bar.png
│ │ ├── image_bar.png.meta
│ │ ├── image_bar_bg.png
│ │ ├── image_bar_bg.png.meta
│ │ ├── image_health.png
│ │ ├── image_health.png.meta
│ │ ├── image_health_title.png
│ │ └── image_health_title.png.meta
├── bundle_res.meta
├── bundle_res
│ ├── pet.meta
│ └── pet
│ │ ├── pet1.png
│ │ ├── pet1.png.meta
│ │ ├── pet2.png
│ │ ├── pet2.png.meta
│ │ ├── pet3.png
│ │ └── pet3.png.meta
├── libs.meta
├── libs
│ ├── .gitignore
│ ├── protobuf.min.js
│ ├── protobuf.min.js.map
│ ├── protobuf.min.js.map.meta
│ └── protobuf.min.js.meta
├── project.manifest
├── project.manifest.meta
├── resources.meta
├── resources
│ ├── anim.meta
│ ├── anim
│ │ ├── rotate.anim
│ │ └── rotate.anim.meta
│ ├── config.meta
│ ├── config
│ │ ├── buffer.meta
│ │ ├── buffer
│ │ │ ├── DictSheet.bin
│ │ │ ├── DictSheet.bin.meta
│ │ │ ├── basic.bin
│ │ │ ├── basic.bin.meta
│ │ │ ├── dict.bin
│ │ │ ├── dict.bin.meta
│ │ │ ├── dict_list.bin
│ │ │ ├── dict_list.bin.meta
│ │ │ ├── dict_list_dict.bin
│ │ │ ├── dict_list_dict.bin.meta
│ │ │ ├── list.bin
│ │ │ ├── list.bin.meta
│ │ │ ├── list_dict.bin
│ │ │ └── list_dict.bin.meta
│ │ ├── ec_entity_config.json
│ │ └── ec_entity_config.json.meta
│ ├── icon.meta
│ ├── icon
│ │ ├── 6102.png
│ │ ├── 6102.png.meta
│ │ ├── 6103.png
│ │ ├── 6103.png.meta
│ │ ├── 6104.png
│ │ ├── 6104.png.meta
│ │ ├── icon.png
│ │ └── icon.png.meta
│ ├── prefab.meta
│ ├── prefab
│ │ ├── ball.prefab
│ │ └── ball.prefab.meta
│ ├── texture.meta
│ ├── texture
│ │ ├── 6101.png
│ │ └── 6101.png.meta
│ ├── ui.meta
│ └── ui
│ │ ├── Condition.bin
│ │ ├── Condition.bin.meta
│ │ ├── Condition_atlas0.png
│ │ ├── Condition_atlas0.png.meta
│ │ ├── Game.bin
│ │ ├── Game.bin.meta
│ │ ├── Home.bin.meta
│ │ ├── Home_atlas0.png.meta
│ │ ├── HotUpdate.bin
│ │ ├── HotUpdate.bin.meta
│ │ ├── MiniGame.bin
│ │ ├── MiniGame.bin.meta
│ │ ├── Socket.bin
│ │ ├── Socket.bin.meta
│ │ ├── Window.bin
│ │ ├── Window.bin.meta
│ │ ├── Window_atlas0.png
│ │ ├── Window_atlas0.png.meta
│ │ ├── manual.meta
│ │ └── manual
│ │ ├── Basics.bin
│ │ ├── Basics.bin.meta
│ │ ├── Basics_atlas0.png
│ │ ├── Basics_atlas0.png.meta
│ │ ├── Home.bin
│ │ └── Home.bin.meta
├── scene.meta
├── scene
│ ├── GameEntry.scene
│ ├── GameEntry.scene.meta
│ ├── NativeGameEntry.scene
│ └── NativeGameEntry.scene.meta
├── script.meta
├── script
│ ├── Binary.ts.meta
│ ├── Data.meta
│ ├── Data
│ │ ├── DataHelper.ts
│ │ └── DataHelper.ts.meta
│ ├── Debug.ts
│ ├── Debug.ts.meta
│ ├── GameEntry.ts
│ ├── GameEntry.ts.meta
│ ├── Helper.meta
│ ├── Helper
│ │ ├── NativeCallJS.ts
│ │ ├── NativeCallJS.ts.meta
│ │ ├── SDKHelper.ts
│ │ └── SDKHelper.ts.meta
│ ├── Math.ts
│ ├── Math.ts.meta
│ ├── Net.meta
│ ├── Net
│ │ ├── NetHelper.ts
│ │ ├── NetHelper.ts.meta
│ │ ├── NetTaskBase.ts
│ │ ├── NetTaskBase.ts.meta
│ │ ├── header.ts
│ │ ├── header.ts.meta
│ │ ├── task.meta
│ │ └── task
│ │ │ ├── NetAuth.ts
│ │ │ └── NetAuth.ts.meta
│ ├── Socket.meta
│ ├── Socket
│ │ ├── ProtoInfos.ts
│ │ ├── ProtoInfos.ts.meta
│ │ ├── proto.meta
│ │ └── proto
│ │ │ ├── proto.d.ts
│ │ │ ├── proto.d.ts.meta
│ │ │ ├── proto.js
│ │ │ └── proto.js.meta
│ ├── UI.meta
│ ├── UI
│ │ ├── Basics.meta
│ │ ├── Basics
│ │ │ ├── Common.meta
│ │ │ ├── Common
│ │ │ │ ├── AlertWindow.ts
│ │ │ │ ├── AlertWindow.ts.meta
│ │ │ │ ├── LoadUIWindow.ts
│ │ │ │ ├── LoadUIWindow.ts.meta
│ │ │ │ ├── ToastWindow.ts
│ │ │ │ └── ToastWindow.ts.meta
│ │ │ ├── Header.meta
│ │ │ └── Header
│ │ │ │ ├── WindowHeader.ts
│ │ │ │ ├── WindowHeader.ts.meta
│ │ │ │ ├── WindowHeader2.ts
│ │ │ │ └── WindowHeader2.ts.meta
│ │ ├── CloseAllWindow.ts.meta
│ │ ├── CloseOneWindow.ts.meta
│ │ ├── Components.meta
│ │ ├── Condition.meta
│ │ ├── Condition
│ │ │ ├── ConditionWindow.ts
│ │ │ └── ConditionWindow.ts.meta
│ │ ├── ConditionWindow.ts.meta
│ │ ├── Game.meta
│ │ ├── Game
│ │ │ ├── GameWindow.ts
│ │ │ └── GameWindow.ts.meta
│ │ ├── HideAllWindow.ts.meta
│ │ ├── HideOneWindow.ts.meta
│ │ ├── HomeWindow.ts
│ │ ├── HomeWindow.ts.meta
│ │ ├── HotUpdate.meta
│ │ ├── HotUpdate
│ │ │ ├── HotUpdateWindow.ts
│ │ │ └── HotUpdateWindow.ts.meta
│ │ ├── MiniGame.meta
│ │ ├── MiniGame
│ │ │ ├── MiniGameWindow.ts
│ │ │ └── MiniGameWindow.ts.meta
│ │ ├── PopWindow.ts.meta
│ │ ├── PopWindowHeader1.ts.meta
│ │ ├── PopWindowHeader2.ts.meta
│ │ ├── Socket.meta
│ │ ├── Socket
│ │ │ ├── SocketTestWindow.ts
│ │ │ └── SocketTestWindow.ts.meta
│ │ ├── SocketTestWindow.ts.meta
│ │ ├── Window.meta
│ │ └── Window
│ │ │ ├── CloseAllWindow.ts
│ │ │ ├── CloseAllWindow.ts.meta
│ │ │ ├── CloseOneWindow.ts
│ │ │ ├── CloseOneWindow.ts.meta
│ │ │ ├── Components.meta
│ │ │ ├── Components
│ │ │ ├── CustomComponents.ts
│ │ │ └── CustomComponents.ts.meta
│ │ │ ├── HideAllWindow.ts
│ │ │ ├── HideAllWindow.ts.meta
│ │ │ ├── HideOneWindow.ts
│ │ │ ├── HideOneWindow.ts.meta
│ │ │ ├── PopWindow.ts
│ │ │ ├── PopWindow.ts.meta
│ │ │ ├── PopWindowHeader1.ts
│ │ │ ├── PopWindowHeader1.ts.meta
│ │ │ ├── PopWindowHeader2.ts
│ │ │ ├── PopWindowHeader2.ts.meta
│ │ │ ├── UIBaseWindow.ts
│ │ │ └── UIBaseWindow.ts.meta
│ ├── UIPackageRegister.ts
│ ├── UIPackageRegister.ts.meta
│ ├── condition.meta
│ ├── condition
│ │ ├── Condition1.ts
│ │ ├── Condition1.ts.meta
│ │ ├── Condition2.ts
│ │ ├── Condition2.ts.meta
│ │ ├── Condition3.ts
│ │ ├── Condition3.ts.meta
│ │ ├── Condition4.ts
│ │ ├── Condition4.ts.meta
│ │ ├── ConditionType.ts
│ │ └── ConditionType.ts.meta
│ ├── ec.meta
│ ├── ec
│ │ ├── ComponentTypes.ts
│ │ ├── ComponentTypes.ts.meta
│ │ ├── component.meta
│ │ ├── component
│ │ │ ├── basic.meta
│ │ │ └── basic
│ │ │ │ ├── Health.ts
│ │ │ │ ├── Health.ts.meta
│ │ │ │ ├── LimitMove.ts
│ │ │ │ ├── LimitMove.ts.meta
│ │ │ │ ├── Move.ts
│ │ │ │ ├── Move.ts.meta
│ │ │ │ ├── PositionUpdateSystem.ts
│ │ │ │ ├── PositionUpdateSystem.ts.meta
│ │ │ │ ├── RenderPrefab.ts
│ │ │ │ ├── RenderPrefab.ts.meta
│ │ │ │ ├── RenderTexture.ts
│ │ │ │ ├── RenderTexture.ts.meta
│ │ │ │ ├── RootNode.ts
│ │ │ │ ├── RootNode.ts.meta
│ │ │ │ ├── ScreenRebound.ts
│ │ │ │ ├── ScreenRebound.ts.meta
│ │ │ │ ├── Transform.ts
│ │ │ │ └── Transform.ts.meta
│ │ └── singleton.meta
│ ├── header.ts
│ ├── header.ts.meta
│ └── kunpolib.meta
├── uiconfig.meta
├── uiconfig
│ ├── ui_config.json
│ └── ui_config.json.meta
├── version.json
├── version.json.meta
├── version.manifest
└── version.manifest.meta
├── excel
└── test.xlsx
├── extensions-config
├── .gitignore
├── entity
│ └── entity1.json
└── fgui
│ ├── Basics
│ ├── AlertWindow.json
│ ├── LoadUIWindow.json
│ ├── ToastWindow.json
│ ├── WindowHeader.json
│ └── WindowHeader2.json
│ ├── Condition
│ └── ConditionWindow.json
│ ├── Game
│ └── GameWindow.json
│ ├── Home
│ ├── CloseAllWindow.json
│ ├── CloseOneWindow.json
│ ├── ConditionWindow.json
│ ├── CustomComponents.json
│ ├── HideAllWindow.json
│ ├── HideOneWindow.json
│ ├── HomeWindow.json
│ ├── PopWindow.json
│ ├── PopWindowHeader1.json
│ ├── PopWindowHeader2.json
│ └── SocketTestWindow.json
│ ├── HotUpdate
│ └── HotUpdateWindow.json
│ ├── MiniGame
│ └── MiniGameWindow.json
│ ├── Socket
│ └── SocketTestWindow.json
│ └── Window
│ ├── CloseAllWindow.json
│ ├── CloseOneWindow.json
│ ├── CustomComponents.json
│ ├── HideAllWindow.json
│ ├── HideOneWindow.json
│ ├── PopWindow.json
│ ├── PopWindowHeader1.json
│ ├── PopWindowHeader2.json
│ └── UIBaseWindow.json
├── lib.d.ts
└── SDKHelper.d.ts
├── native
└── engine
│ ├── android
│ ├── .gitignore
│ ├── CMakeLists.txt
│ ├── Post-service.cmake
│ ├── Pre-service.cmake
│ ├── app
│ │ ├── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── com
│ │ │ ├── cocos
│ │ │ └── game
│ │ │ │ └── AppActivity.java
│ │ │ └── kunpo
│ │ │ └── KunpoHelper.java
│ ├── build-cfg.json
│ ├── build.gradle
│ ├── instantapp
│ │ ├── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── com
│ │ │ └── cocos
│ │ │ └── game
│ │ │ └── InstantActivity.java
│ └── res
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ └── ic_launcher.png
│ │ └── values
│ │ └── strings.xml
│ ├── common
│ ├── .gitignore
│ ├── CMakeLists.txt
│ ├── Classes
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── JNIAndroid
│ │ │ ├── JniTools.cpp
│ │ │ └── JniTools.h
│ │ ├── SDKHelper.cpp
│ │ ├── SDKHelper.h
│ │ └── bindings
│ │ │ └── auto
│ │ │ ├── jsb_SDKHelper_auto.cpp
│ │ │ └── jsb_SDKHelper_auto.h
│ ├── cocos-version.json
│ ├── localCfg.cmake
│ └── xr.cmake
│ ├── harmonyos-next
│ ├── .gitignore
│ ├── AppScope
│ │ ├── app.json5
│ │ └── resources
│ │ │ └── base
│ │ │ ├── element
│ │ │ └── string.json
│ │ │ └── media
│ │ │ └── app_icon.png
│ ├── CMakeLists.txt
│ ├── build-profile.json5
│ ├── entry
│ │ ├── .gitignore
│ │ ├── build-profile.json5
│ │ ├── hvigorfile.ts
│ │ ├── oh-package.json5
│ │ └── src
│ │ │ └── main
│ │ │ ├── cpp
│ │ │ └── types
│ │ │ │ └── libcocos
│ │ │ │ ├── index.d.ts
│ │ │ │ └── oh-package.json5
│ │ │ ├── ets
│ │ │ ├── cocos
│ │ │ │ ├── WorkerManager.ets
│ │ │ │ └── oh-adapter
│ │ │ │ │ └── sys-ability-polyfill.js
│ │ │ ├── common
│ │ │ │ ├── Constants.ts
│ │ │ │ └── PortProxy.ts
│ │ │ ├── components
│ │ │ │ ├── CocosVideoPlayer.ets
│ │ │ │ ├── CocosWebView.ets
│ │ │ │ └── EditBoxDialog.ets
│ │ │ ├── entryability
│ │ │ │ └── EntryAbility.ets
│ │ │ ├── pages
│ │ │ │ └── index.ets
│ │ │ └── workers
│ │ │ │ └── cocos_worker.ts
│ │ │ ├── module.json5
│ │ │ └── resources
│ │ │ ├── .gitignore
│ │ │ └── base
│ │ │ ├── element
│ │ │ ├── color.json
│ │ │ └── string.json
│ │ │ ├── media
│ │ │ └── icon.png
│ │ │ └── profile
│ │ │ └── main_pages.json
│ ├── hvigor
│ │ └── hvigor-config.json5
│ ├── hvigorfile.ts
│ └── oh-package.json5
│ └── ios
│ ├── AppDelegate.h
│ ├── AppDelegate.mm
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Localizable.strings
│ ├── CMakeLists.txt
│ ├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ ├── 1024.png
│ │ ├── 114.png
│ │ ├── 120.png
│ │ ├── 180.png
│ │ ├── 29.png
│ │ ├── 40.png
│ │ ├── 57.png
│ │ ├── 58.png
│ │ ├── 60.png
│ │ ├── 80.png
│ │ ├── 87.png
│ │ └── Contents.json
│ └── Contents.json
│ ├── Info.plist
│ ├── LaunchScreenBackground.png
│ ├── LaunchScreenBackgroundLandscape.png
│ ├── LaunchScreenBackgroundPortrait.png
│ ├── Post-service.cmake
│ ├── Pre-service.cmake
│ ├── Prefix.pch
│ ├── ViewController.h
│ ├── ViewController.mm
│ ├── main.mm
│ ├── service
│ ├── SDKWrapper.h
│ └── SDKWrapper.m
│ └── zh-Hans.lproj
│ └── Localizable.strings
├── package.json
├── proto
├── AutoExport.js
├── CommonMessage.proto
└── test.proto
├── settings
└── v2
│ └── packages
│ ├── builder.json
│ ├── cocos-service.json
│ ├── device.json
│ ├── engine.json
│ ├── information.json
│ ├── ios.json
│ ├── program.json
│ ├── project.json
│ └── scene.json
├── tools
└── swig-config
│ ├── SDKHelper.i
│ └── swig-config.js
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | #///////////////////////////
3 | # Cocos Creator 3D Project
4 | #///////////////////////////
5 | library/
6 | temp/
7 | local/
8 | build/
9 | profiles/
10 | extensions/
11 | publish/
12 | #//////////////////////////
13 | # NPM
14 | #//////////////////////////
15 | node_modules/
16 |
17 | #//////////////////////////
18 | # VSCode
19 | #//////////////////////////
20 | .vscode/
21 | .creator/
22 |
23 | #//////////////////////////
24 | # WebStorm
25 | #//////////////////////////
26 | .idea/
27 |
28 | package-lock.json
29 |
30 | **/.DS_Store
--------------------------------------------------------------------------------
/FguiCreator3.8/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .objs/
3 |
--------------------------------------------------------------------------------
/FguiCreator3.8/FguiCreator3.8.fairy:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/ComboBox1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/ComboBox1_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/ComboBox1_popup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/Font1.fnt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Basics/btns/Font1.fnt
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/Label1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/MovieClip1.jta:
--------------------------------------------------------------------------------
1 | yytou f
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/ProgressBar1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/Slider1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/Slider1_grip.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/btn_close.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/button1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/image_button1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Basics/btns/image_button1.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/btns/image_button_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Basics/btns/image_button_close.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/empty.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/header/WindowHeader.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/header/WindowHeader2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/image/image_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Basics/image/image_black.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/load/image_net_wait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Basics/load/image_net_wait.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/window/ToastWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/window/toast/image_toastbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Basics/window/toast/image_toastbg.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Basics/window/toast/toast.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Condition/image/image_reddot_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Condition/image/image_reddot_bg.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Condition/image/item_reddot.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Condition/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Game/GameWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Game/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Home/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/HotUpdate/HotUpdateWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/HotUpdate/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/MiniGame/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Socket/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/CloseAllWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/CloseOneWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/CustomComponents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/HideAllWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/HideOneWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/PopWindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/PopWindowHeader1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/PopWindowHeader2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/image/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/FguiCreator3.8/assets/Window/image/Icon-60@2x.png
--------------------------------------------------------------------------------
/FguiCreator3.8/assets/Window/package.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/FguiCreator3.8/settings/Adaptation.json:
--------------------------------------------------------------------------------
1 | {
2 | "scaleMode": "ScaleWithScreenSize",
3 | "screenMathMode": "MatchWidthOrHeight",
4 | "designResolutionX": 750,
5 | "designResolutionY": 1334,
6 | "devices": [],
7 | "fileName": "Adaptation"
8 | }
--------------------------------------------------------------------------------
/FguiCreator3.8/settings/Common.json:
--------------------------------------------------------------------------------
1 | {
2 | "font": "Hiragino Sans GB",
3 | "fontSize": 36,
4 | "textColor": "#ffffff",
5 | "fontAdjustment": false,
6 | "colorScheme": [
7 | "自定义颜色 #FF0000"
8 | ],
9 | "fontSizeScheme": [
10 | "自定义字体大小 30"
11 | ],
12 | "fontScheme": [
13 | "默认字体"
14 | ],
15 | "scrollBars": {
16 | "horizontal": "",
17 | "vertical": "",
18 | "defaultDisplay": "visible"
19 | },
20 | "tipsRes": "",
21 | "buttonClickSound": "",
22 | "pivot": "default",
23 | "listClearOnPublish": false,
24 | "fileName": "Common"
25 | }
--------------------------------------------------------------------------------
/FguiCreator3.8/settings/CustomProperties.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/FguiCreator3.8/settings/Publish.json:
--------------------------------------------------------------------------------
1 | {
2 | "path": "../assets/resources/ui",
3 | "branchPath": "",
4 | "fileExtension": "bin",
5 | "packageCount": 2,
6 | "compressDesc": true,
7 | "binaryFormat": true,
8 | "jpegQuality": 80,
9 | "compressPNG": false,
10 | "codeGeneration": {
11 | "allowGenCode": true,
12 | "codePath": "",
13 | "classNamePrefix": "ui_",
14 | "memberNamePrefix": "m_",
15 | "packageName": null,
16 | "ignoreNoname": true,
17 | "getMemberByName": false,
18 | "codeType": ""
19 | },
20 | "includeHighResolution": 0,
21 | "branchProcessing": 0,
22 | "seperatedAtlasForBranch": false,
23 | "atlasSetting": {
24 | "maxSize": 2048,
25 | "paging": true,
26 | "sizeOption": "npot",
27 | "forceSquare": false,
28 | "allowRotation": false,
29 | "trimImage": true
30 | },
31 | "include2x": false,
32 | "include3x": false,
33 | "include4x": false,
34 | "fileName": "Publish"
35 | }
--------------------------------------------------------------------------------
/FguiCreator3.8/settings/i18n.json:
--------------------------------------------------------------------------------
1 | {
2 | "langFiles": []
3 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 项目说明
2 |
3 | clone项目后,到项目根目录,执行以下命令,安装项目依赖库
4 | ```bash
5 | npm i
6 | ```
7 |
8 | 重新用creator打开项目
9 |
10 | 本项目使用的creator版本为3.8.6
--------------------------------------------------------------------------------
/assets/FirstScene.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "2768ad39-fa5d-43f6-a2f8-723dde4d0a32",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/FirstScene/loading_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/FirstScene/loading_bg.jpg
--------------------------------------------------------------------------------
/assets/FirstScene/res.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "7dea02d9-d93b-4d10-aa8a-311383a60a66",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/FirstScene/res/auto-atlas.pac:
--------------------------------------------------------------------------------
1 | {
2 | "__type__": "cc.SpriteAtlas"
3 | }
4 |
--------------------------------------------------------------------------------
/assets/FirstScene/res/auto-atlas.pac.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.8",
3 | "importer": "auto-atlas",
4 | "imported": true,
5 | "uuid": "0ee96ff7-032b-4826-b543-e6d2dccea89a",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {
11 | "maxWidth": 1024,
12 | "maxHeight": 1024,
13 | "padding": 1,
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 |
--------------------------------------------------------------------------------
/assets/FirstScene/res/image_age_tip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/FirstScene/res/image_age_tip.png
--------------------------------------------------------------------------------
/assets/FirstScene/res/image_bar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/FirstScene/res/image_bar.png
--------------------------------------------------------------------------------
/assets/FirstScene/res/image_bar_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/FirstScene/res/image_bar_bg.png
--------------------------------------------------------------------------------
/assets/FirstScene/res/image_health.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/FirstScene/res/image_health.png
--------------------------------------------------------------------------------
/assets/FirstScene/res/image_health_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/FirstScene/res/image_health_title.png
--------------------------------------------------------------------------------
/assets/bundle_res.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "6af74e7e-0a88-45ee-9f54-eb9fe4dbf93b",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {
9 | "isBundle": true,
10 | "bundleFilterConfig": []
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/assets/bundle_res/pet.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "8603cf96-ad37-4569-8219-e8a3bf3df0fe",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/bundle_res/pet/pet1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/bundle_res/pet/pet1.png
--------------------------------------------------------------------------------
/assets/bundle_res/pet/pet1.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.27",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "7bb3b566-6a3e-48f9-b414-3c5ab8527c0a",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "7bb3b566-6a3e-48f9-b414-3c5ab8527c0a@6c48a",
14 | "displayName": "pet1",
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": "nearest",
23 | "anisotropy": 0,
24 | "isUuid": true,
25 | "imageUuidOrDatabaseUri": "7bb3b566-6a3e-48f9-b414-3c5ab8527c0a",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "hasAlpha": true,
38 | "type": "texture",
39 | "fixAlphaTransparencyArtifacts": false,
40 | "redirect": "7bb3b566-6a3e-48f9-b414-3c5ab8527c0a@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/bundle_res/pet/pet2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/bundle_res/pet/pet2.png
--------------------------------------------------------------------------------
/assets/bundle_res/pet/pet3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/bundle_res/pet/pet3.png
--------------------------------------------------------------------------------
/assets/libs.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "029c5707-dcdd-4e4a-aece-264a51587b84",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/libs/.gitignore:
--------------------------------------------------------------------------------
1 | kunpo-inspector.min.mjs
2 | kunpo-inspector.min.mjs.meta
3 |
4 | kunpo-inspector.mjs
5 | kunpo-inspector.mjs.meta
--------------------------------------------------------------------------------
/assets/libs/protobuf.min.js.map.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.0",
3 | "importer": "*",
4 | "imported": true,
5 | "uuid": "49c2d61d-b9d9-42a0-b8fb-0e49a16b3aa9",
6 | "files": [
7 | ".json",
8 | ".map"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/libs/protobuf.min.js.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "javascript",
4 | "imported": true,
5 | "uuid": "86dc80e7-444d-49d1-b316-97a0de9ef9d3",
6 | "files": [
7 | ".js"
8 | ],
9 | "subMetas": {},
10 | "userData": {
11 | "loadPluginInEditor": true,
12 | "loadPluginInWeb": true,
13 | "loadPluginInNative": true,
14 | "loadPluginInMiniGame": true,
15 | "isPlugin": true
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/assets/project.manifest.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.0",
3 | "importer": "*",
4 | "imported": true,
5 | "uuid": "61f59735-b08e-4496-9ad8-0731b9d684ca",
6 | "files": [
7 | ".json",
8 | ".manifest"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "9d91ce52-ffe8-43c0-a118-9ace6bd9cf45",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {
9 | "isBundle": true,
10 | "bundleConfigID": "default",
11 | "bundleName": "resources",
12 | "priority": 8
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/assets/resources/anim.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "b1a64f1f-5f8a-44b6-b8ef-b1383f52b075",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/anim/rotate.anim.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "2.0.3",
3 | "importer": "animation-clip",
4 | "imported": true,
5 | "uuid": "94e351a1-10f0-41f7-ab21-f29c24e9a2ce",
6 | "files": [
7 | ".cconb"
8 | ],
9 | "subMetas": {},
10 | "userData": {
11 | "name": "rotate"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/assets/resources/config.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "1ea023b5-0ab6-4613-b157-3098b11c379b",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "e4f67d71-d470-42d1-9b9a-1f83d235e025",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/DictSheet.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/config/buffer/DictSheet.bin
--------------------------------------------------------------------------------
/assets/resources/config/buffer/DictSheet.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "c34c30bc-709b-4ad8-9191-8c15875d0d85",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/basic.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/config/buffer/basic.bin
--------------------------------------------------------------------------------
/assets/resources/config/buffer/basic.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "49fb1ab9-a06e-4157-b733-dd3a64202b7c",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/dict.bin:
--------------------------------------------------------------------------------
1 | name Alice position x $@ y 4@ name Bob position x >@ y D@
--------------------------------------------------------------------------------
/assets/resources/config/buffer/dict.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "5f5f19ff-554c-47e3-babc-05ac4e5b0738",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/dict_list.bin:
--------------------------------------------------------------------------------
1 | name Alice attr en one two cn name Bob attr
--------------------------------------------------------------------------------
/assets/resources/config/buffer/dict_list.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "3dc75f69-a4e2-409a-b107-491b4a3105fc",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/dict_list_dict.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/config/buffer/dict_list_dict.bin
--------------------------------------------------------------------------------
/assets/resources/config/buffer/dict_list_dict.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "bf33d428-e248-4887-a41f-b159bcc30016",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/list.bin:
--------------------------------------------------------------------------------
1 | name Alice scores @ @ name Bob scores
--------------------------------------------------------------------------------
/assets/resources/config/buffer/list.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "f0f09729-0846-4cb5-8014-12615f57c9f9",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/buffer/list_dict.bin:
--------------------------------------------------------------------------------
1 | name Alice atts en one ch 一 en two ch 二 name Bob atts en three ch 三 en four ch 四
--------------------------------------------------------------------------------
/assets/resources/config/buffer/list_dict.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "7ccddeab-1e82-4f7d-884c-136b0c761fec",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/config/ec_entity_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "entity1": {
3 | "LimitMove": {
4 | "radius": 30
5 | },
6 | "Move": {
7 | "_speed": 120
8 | },
9 | "PositionUpdateSystem": {},
10 | "RenderPrefab": {
11 | "uuid": "56dc9bdf-19c7-4319-8c27-628ea6424696"
12 | },
13 | "RootNode": {},
14 | "ScreenRebound": {},
15 | "Transform": {}
16 | }
17 | }
--------------------------------------------------------------------------------
/assets/resources/config/ec_entity_config.json.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "2.0.1",
3 | "importer": "json",
4 | "imported": true,
5 | "uuid": "74f73a17-1358-4937-8b5b-c36149e05152",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {}
11 | }
12 |
--------------------------------------------------------------------------------
/assets/resources/icon.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "a5a2dda9-38ca-49d8-b992-aca84bd1cd4a",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/icon/6102.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/icon/6102.png
--------------------------------------------------------------------------------
/assets/resources/icon/6102.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.27",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "55fb25ca-02c5-4571-8e60-8bd6ac23918e",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "55fb25ca-02c5-4571-8e60-8bd6ac23918e@6c48a",
14 | "displayName": "6102",
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": "55fb25ca-02c5-4571-8e60-8bd6ac23918e",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "hasAlpha": true,
38 | "type": "texture",
39 | "fixAlphaTransparencyArtifacts": false,
40 | "redirect": "55fb25ca-02c5-4571-8e60-8bd6ac23918e@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/resources/icon/6103.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/icon/6103.png
--------------------------------------------------------------------------------
/assets/resources/icon/6103.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.27",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "bdf4c0a3-6740-4bd7-89e1-7635cdd647e1",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "bdf4c0a3-6740-4bd7-89e1-7635cdd647e1@6c48a",
14 | "displayName": "6103",
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": "bdf4c0a3-6740-4bd7-89e1-7635cdd647e1",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "hasAlpha": true,
38 | "type": "texture",
39 | "fixAlphaTransparencyArtifacts": false,
40 | "redirect": "bdf4c0a3-6740-4bd7-89e1-7635cdd647e1@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/resources/icon/6104.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/icon/6104.png
--------------------------------------------------------------------------------
/assets/resources/icon/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/icon/icon.png
--------------------------------------------------------------------------------
/assets/resources/prefab.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "06de19c7-7f67-4a81-8f51-ba6a5fe6ea28",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/prefab/ball.prefab.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.50",
3 | "importer": "prefab",
4 | "imported": true,
5 | "uuid": "56dc9bdf-19c7-4319-8c27-628ea6424696",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {
11 | "syncNodeName": "ball"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/assets/resources/texture.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "d81b037f-9f46-4923-90e3-f08515156ace",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/texture/6101.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/texture/6101.png
--------------------------------------------------------------------------------
/assets/resources/ui.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "147ab882-97f7-401f-b394-f07060d515e1",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/ui/Condition.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/Condition.bin
--------------------------------------------------------------------------------
/assets/resources/ui/Condition.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "0c4eb7a1-ff02-4654-b1e8-cebd83073e64",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/Condition_atlas0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/Condition_atlas0.png
--------------------------------------------------------------------------------
/assets/resources/ui/Condition_atlas0.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.27",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "5e20beb7-4e36-4009-b2fc-12363dd586c1",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "5e20beb7-4e36-4009-b2fc-12363dd586c1@6c48a",
14 | "displayName": "Condition_atlas0",
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": "5e20beb7-4e36-4009-b2fc-12363dd586c1",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "fixAlphaTransparencyArtifacts": true,
38 | "hasAlpha": true,
39 | "type": "texture",
40 | "redirect": "5e20beb7-4e36-4009-b2fc-12363dd586c1@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/resources/ui/Game.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/Game.bin
--------------------------------------------------------------------------------
/assets/resources/ui/Game.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "acd5e6e2-5bcf-4670-9401-cd449b76d3e3",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/Home.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "331f22ee-2a7d-48af-bc79-762e6fab0930",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/Home_atlas0.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.26",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "72aef8d1-c0b9-4064-a070-05ef73bc7a9e",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "72aef8d1-c0b9-4064-a070-05ef73bc7a9e@6c48a",
14 | "displayName": "Home_atlas0",
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": "72aef8d1-c0b9-4064-a070-05ef73bc7a9e",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "hasAlpha": true,
38 | "type": "texture",
39 | "fixAlphaTransparencyArtifacts": false,
40 | "redirect": "72aef8d1-c0b9-4064-a070-05ef73bc7a9e@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/resources/ui/HotUpdate.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/HotUpdate.bin
--------------------------------------------------------------------------------
/assets/resources/ui/HotUpdate.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "bcc566a0-e9a7-4aa6-874b-1cb226f10f57",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/MiniGame.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/MiniGame.bin
--------------------------------------------------------------------------------
/assets/resources/ui/MiniGame.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "1aafc8a5-bc8e-4c4b-8116-90a779354554",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/Socket.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/Socket.bin
--------------------------------------------------------------------------------
/assets/resources/ui/Socket.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "f89db7d4-cac2-4d81-9b9f-042a0abbe9c7",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/Window.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/Window.bin
--------------------------------------------------------------------------------
/assets/resources/ui/Window.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "5aa1ffee-27a7-4a3b-85cf-e5714ab05803",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/Window_atlas0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/Window_atlas0.png
--------------------------------------------------------------------------------
/assets/resources/ui/Window_atlas0.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.27",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "b57ac369-668d-4a88-a919-d38170c49e26",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "b57ac369-668d-4a88-a919-d38170c49e26@6c48a",
14 | "displayName": "Window_atlas0",
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": "b57ac369-668d-4a88-a919-d38170c49e26",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "fixAlphaTransparencyArtifacts": true,
38 | "hasAlpha": true,
39 | "type": "texture",
40 | "redirect": "b57ac369-668d-4a88-a919-d38170c49e26@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/resources/ui/manual.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "786712f2-5631-4265-bf7b-690f4763a3aa",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/resources/ui/manual/Basics.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/manual/Basics.bin
--------------------------------------------------------------------------------
/assets/resources/ui/manual/Basics.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "8d6a01b1-dad8-46b4-9fdc-5bbfcc52444a",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/resources/ui/manual/Basics_atlas0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/manual/Basics_atlas0.png
--------------------------------------------------------------------------------
/assets/resources/ui/manual/Basics_atlas0.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.27",
3 | "importer": "image",
4 | "imported": true,
5 | "uuid": "e79e7e68-6506-4516-8ef2-f6b50b340044",
6 | "files": [
7 | ".json",
8 | ".png"
9 | ],
10 | "subMetas": {
11 | "6c48a": {
12 | "importer": "texture",
13 | "uuid": "e79e7e68-6506-4516-8ef2-f6b50b340044@6c48a",
14 | "displayName": "Basics_atlas0",
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": "e79e7e68-6506-4516-8ef2-f6b50b340044",
26 | "visible": false
27 | },
28 | "ver": "1.0.22",
29 | "imported": true,
30 | "files": [
31 | ".json"
32 | ],
33 | "subMetas": {}
34 | }
35 | },
36 | "userData": {
37 | "fixAlphaTransparencyArtifacts": true,
38 | "hasAlpha": true,
39 | "type": "texture",
40 | "redirect": "e79e7e68-6506-4516-8ef2-f6b50b340044@6c48a"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/assets/resources/ui/manual/Home.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/assets/resources/ui/manual/Home.bin
--------------------------------------------------------------------------------
/assets/resources/ui/manual/Home.bin.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.3",
3 | "importer": "buffer",
4 | "imported": true,
5 | "uuid": "0ddbad49-93fa-4a05-b864-4b0855833c48",
6 | "files": [
7 | ".bin",
8 | ".json"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/assets/scene.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "6f3166a3-36ba-4512-bae8-889c2a7d7d98",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/scene/GameEntry.scene.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.50",
3 | "importer": "scene",
4 | "imported": true,
5 | "uuid": "bef93422-3e63-4c0f-a5cf-d926e7360673",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {}
11 | }
12 |
--------------------------------------------------------------------------------
/assets/scene/NativeGameEntry.scene.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.50",
3 | "importer": "scene",
4 | "imported": true,
5 | "uuid": "f75274b3-ee34-4805-a3bb-44d0c4617d01",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {}
11 | }
12 |
--------------------------------------------------------------------------------
/assets/script.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "448b0525-daf3-4ad4-be4a-04a7e181f028",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Binary.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "24de22b8-8818-44a6-be2a-6aaa539447b0",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Data.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "204786f0-6faa-434f-bb4a-365be227bf25",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Data/DataHelper.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-17
4 | * @Description: 准备一个数据类
5 | */
6 |
7 | import { kunpo } from "../header";
8 |
9 | export class DataHelper {
10 | private static _data: Map = new Map();
11 |
12 | public static getValue(key: string, defaultValue: T): T {
13 | if (this._data.has(key)) {
14 | return this._data.get(key) as T;
15 | }
16 | return defaultValue;
17 | }
18 |
19 | public static setValue(key: string, value: any): void {
20 | this._data.set(key, value);
21 | /** 数据改变后发送事件 */
22 | kunpo.GlobalEvent.send(key);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/assets/script/Data/DataHelper.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "7340bacc-d167-47e8-a83b-2224c46b7fd0",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Debug.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "cb6cfaf4-abaa-446a-bdba-a6b6f32cd810",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/GameEntry.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "e5804a9e-c17f-4df6-8a74-778687e2bec1",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Helper.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "62ab5824-ce9f-4472-98ad-23bd415ec454",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Helper/NativeCallJS.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-03-22
4 | * @Description:
5 | */
6 |
7 | function KunpoNativeCallJsHandler(jsonString: string) {
8 | console.log("KunpoNativeCallJsHandler", jsonString);
9 | // let json = JSON.parse(jsonString);
10 | // let functionName = json.function;
11 | // let args = json.args;
12 | // let func = _global[functionName];
13 | // if (func) {
14 | // func(...args);
15 | // }
16 | }
17 |
18 |
19 | let _global = globalThis || window || global;
20 | (_global as any)["KunpoNativeCallJsHandler"] = KunpoNativeCallJsHandler;
--------------------------------------------------------------------------------
/assets/script/Helper/NativeCallJS.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "6dd5b452-10ce-4d6c-9013-c0c991560dd7",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Helper/SDKHelper.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-03-22
4 | * @Description:
5 | */
6 |
7 | import { kunpo } from "../header";
8 |
9 | export class SDKHelper {
10 | private static _manifestUrl: string = "";
11 | public static getSystemInfo(): Promise<{ version: string, build: number }> {
12 | return new Promise((resolve, reject) => {
13 | KunpoSDK.SDKHelper.getInstance().getSystemInfo();
14 | kunpo.GlobalEvent.addOnce("calljs::getSystemInfo", (data: { version: string, build: number }) => {
15 | resolve(data);
16 | }, this);
17 | });
18 | }
19 |
20 | public static set manifestUrl(url: string) {
21 | this._manifestUrl = url;
22 | }
23 |
24 | public static get manifestUrl(): string {
25 | return this._manifestUrl;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/assets/script/Helper/SDKHelper.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "76eb0078-54f0-400d-a151-68586eaa78f3",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Math.ts:
--------------------------------------------------------------------------------
1 | interface Math {
2 | /**
3 | * 限制值
4 | * @param value 当前值
5 | * @param min 最小值
6 | * @param max 最大值
7 | */
8 | clampf(value: number, min: number, max: number): number;
9 |
10 | /**
11 | * 随机从 min 到 max 的整数(包含min和max)
12 | * @param min
13 | * @param max
14 | */
15 | rand(min: number, max: number): number;
16 |
17 | /**
18 | * 随机从 min 到 max的数
19 | * @param min
20 | * @param max
21 | */
22 | randRange(min: number, max: number): number;
23 |
24 | /**
25 | * 角度转弧度
26 | * @param angle 角度
27 | */
28 | rad(angle: number): number;
29 |
30 | /**
31 | * 弧度转角度
32 | * @param radian 弧度
33 | */
34 | deg(radian: number): number;
35 |
36 | /**
37 | * 数值平滑渐变
38 | * @param num1
39 | * @param num2
40 | * @param elapsedTime
41 | * @param responseTime
42 | */
43 | smooth(num1: number, num2: number, elapsedTime: number, responseTime: number): number;
44 | }
45 |
46 | Math.clampf = function (value: number, min: number, max: number): number {
47 | return Math.min(Math.max(value, min), max);
48 | };
49 |
50 | Math.rand = function (min: number, max: number): number {
51 | return Math.floor(Math.random() * (max - min + 1) + min);
52 | };
53 |
54 | Math.randRange = function (min: number, max: number): number {
55 | return Math.random() * (max - min) + min;
56 | };
57 |
58 | Math.rad = function (angle: number): number {
59 | return (angle * Math.PI) / 180;
60 | };
61 |
62 | Math.deg = function (radian: number): number {
63 | return (radian * 180) / Math.PI;
64 | };
65 |
66 | Math.smooth = function (num1: number, num2: number, elapsedTime: number, responseTime: number): number {
67 | let out: number = num1;
68 | if (elapsedTime > 0) {
69 | out = out + (num2 - num1) * (elapsedTime / (elapsedTime + responseTime));
70 | }
71 | return out;
72 | };
73 |
74 |
--------------------------------------------------------------------------------
/assets/script/Math.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "a336ce23-5d73-4280-b2e9-084389a3877e",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Net.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "fcf6e6db-b041-4ade-a17c-c2ac3d72aed0",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Net/NetHelper.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-05-20
4 | * @Description:
5 | */
6 | import { kunpo } from "../header";
7 | import { ServerConfig } from "./header";
8 |
9 |
10 | export class NetHelper {
11 | public static get url(): string { return ServerConfig.url };
12 | public static get appid(): string { return ServerConfig.appid };
13 | public static get secret(): string { return ServerConfig.secret };
14 |
15 | public static send(url: string, data: any, netEvent: kunpo.IHttpEvent) {
16 | netEvent.data = new Date().getTime();
17 | let sendData = JSON.stringify(data);
18 | kunpo.log(`http request\n name:${netEvent.name}\n url=${this.url + url}\n data=${sendData}`);
19 | kunpo.HttpManager.post(this.url + url, sendData, "json", netEvent, this.formatHeaders(netEvent.data, data), 5);
20 | }
21 |
22 | private static formatHeaders(time: number, data: any): any[] {
23 | return ["content-type", "application/json", "sign", this.signCalculateJSON(time, data), "time", encodeURIComponent(String(time)), "authorization", ""];
24 | }
25 |
26 | /** 计算签名 */
27 | public static signCalculateJSON(time: number, data: any): string {
28 | let signData = {
29 | appid: this.appid,
30 | signkey: this.secret,
31 | time: time,
32 | body: JSON.stringify(data)
33 | }
34 | let keys = Object.keys(signData);
35 | keys.sort();
36 | let signStr = [];
37 | for (let key of keys) {
38 | signStr.push(`${key}=${signData[key]}&`);
39 | }
40 | // kunpo.log("sign 未md5加密 :" + signStr.join(""))
41 | // kunpo.log("sign:" + kunpo.md5(signStr.join("")));
42 | return encodeURIComponent(kunpo.md5(signStr.join("")));
43 | }
44 | }
--------------------------------------------------------------------------------
/assets/script/Net/NetHelper.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "e9a1a84a-bf3a-4b94-aeea-9160d84713f8",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Net/NetTaskBase.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "8c6e5935-bded-41fb-9df8-21dd76f82186",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Net/header.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-28
4 | * @Description:
5 | */
6 |
7 | export interface INetResponse {
8 | responseStatus: number;
9 | packet: any;
10 | }
11 |
12 | export interface IServerInfo {
13 | /** 名称 */
14 | name: string,
15 | /** http地址 */
16 | url: string,
17 | /** 应用id */
18 | appid: string,
19 | /** 密钥 */
20 | secret: string,
21 | }
22 |
23 | export const ServerConfig: IServerInfo = {
24 | name: "dev-gblnn",
25 | url: "https://dev-gblnn.lanfeitech.com",
26 | appid: "qEAb2ZhK",
27 | secret: "e7b439c886b4ce15fb809b14d69ed0e2",
28 | }
--------------------------------------------------------------------------------
/assets/script/Net/header.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "cad69694-c4c3-4d7d-b490-26e5ebd1141e",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Net/task.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "35d378d9-a2a5-407b-afec-9c7e55e408cf",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Net/task/NetAuth.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-05-20
4 | * @Description: 新版鉴权接口
5 | */
6 | import { kunpo } from "../../header";
7 | import { INetResponse } from "../header";
8 | import { NetHelper } from "../NetHelper";
9 | import { NetTaskBase } from "../NetTaskBase";
10 |
11 | interface IAuthResponse extends INetResponse {
12 | token: string;
13 | uid: number; // 用户id
14 | sdkId: string;
15 | channel: number;
16 | /** 注册渠道 */
17 | regChannel: number;
18 | }
19 |
20 | /** 账户认证 */
21 | export class NetAuth extends NetTaskBase {
22 | name: string = "NetSocketAuth";
23 | url: string = '/api/game/auth';
24 | constructor() {
25 | super()
26 | }
27 |
28 | public start(): void {
29 | let data = {
30 | channel: 25,
31 | token: kunpo.Platform.deviceId,
32 | openid: kunpo.Platform.deviceId,
33 | sdkChannel: 25,
34 | distinctId: ''
35 | }
36 | NetHelper.send(this.url, data, this);
37 | }
38 |
39 | protected onTaskComplete(data: IAuthResponse): void {
40 |
41 | }
42 | }
43 |
44 |
45 |
--------------------------------------------------------------------------------
/assets/script/Net/task/NetAuth.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "10bbcb28-912a-4ba5-9bfd-a21668ee8763",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Socket.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "4d07e39e-8369-4331-890e-80d2472a6b52",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Socket/ProtoInfos.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-08-06
4 | * @Description:
5 | */
6 |
7 | import { protocol } from "../header";
8 | import { com } from "./proto/proto";
9 |
10 | export interface ProtocolFormat {
11 | request: number;
12 | response: number;
13 | desc: string;
14 | }
15 |
16 | export class ProtoInfos {
17 | public encodeData(protoCode: number, data: string): ArrayBuffer {
18 | return protocol.CommonMessage.encode({ cmdCode: 0, protocolId: protoCode, responseStatus: 1, msgId: 1, msg: data }).finish();
19 | }
20 |
21 | /** 前四个字节是长度信息 */
22 | public decodeData(buffer: Uint8Array | ArrayBufferLike): com.kunpo.proto.CommonMessage {
23 | let response_buffer = new Uint8Array(buffer);
24 | return protocol.CommonMessage.decode(response_buffer);
25 | }
26 | }
--------------------------------------------------------------------------------
/assets/script/Socket/ProtoInfos.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "d686884b-fad9-4a58-8781-5bac09b47041",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Socket/proto.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "6961d096-69d0-4c14-9fd7-fa98afc5357e",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Socket/proto/proto.d.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "1508669b-41ae-40e9-b24e-c4af0f01120d",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/Socket/proto/proto.js.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "javascript",
4 | "imported": true,
5 | "uuid": "e777207e-c569-4375-838f-aeb51ff06a30",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "ce0bb648-7b41-4640-be24-62109ab2ad59",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "eae449a2-8b5c-42ff-8917-888937877f85",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Common.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "e7f088c6-38b1-4278-8ba4-4f7de40afb3d",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Common/AlertWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "434791ba-2680-4643-aea0-ecf8bebc2ff9",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Common/LoadUIWindow.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { kunpo } from '../../../header';
4 | const { uiclass, uiprop } = kunpo._uidecorator;
5 |
6 | /** UI界面资源加载等待界面 */
7 | @uiclass("Wait", "Basics", "LoadUIWindow")
8 | export class LoadUIWindow extends kunpo.Window {
9 | protected onInit(): void {
10 | this.adapterType = kunpo.AdapterType.Full;
11 | this.type = kunpo.WindowType.Normal;
12 | }
13 | }
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Common/LoadUIWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "0b7e1ba3-9877-45ea-9d1b-71115f04744b",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Common/ToastWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "993ce544-0214-4132-ba2c-2d464aa39257",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Header.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "d53b1983-3f1e-4e89-8114-88dfcc95075f",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Header/WindowHeader.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-12
4 | * @Description:
5 | */
6 | import { fgui, kunpo } from '../../../header';
7 | const { uiheader, uiprop, uiclick } = kunpo._uidecorator;
8 |
9 | @uiheader("Basics", "WindowHeader")
10 | export class WindowHeader extends kunpo.WindowHeader {
11 | @uiprop btn_close: fgui.GButton;
12 | protected onInit(): void {
13 | this.adapterType = kunpo.AdapterType.Bang;
14 |
15 | this.btn_close.onClick(() => {
16 | kunpo.log("WindowHeader btn_close");
17 | }, this);
18 | }
19 |
20 | protected onShow(window: kunpo.Window, userdata?: any): void {
21 | kunpo.log("WindowHeader onShow:");
22 | }
23 |
24 | protected onHide(): void {
25 | kunpo.log("WindowHeader onHide");
26 | }
27 |
28 | protected onClose(): void {
29 | kunpo.log("WindowHeader onClose");
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Header/WindowHeader.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "bcb15a03-27d3-46b7-9f6b-53040cd6bbcb",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Header/WindowHeader2.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-12
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from '../../../header';
8 | const { uiheader, uiprop, uiclick } = kunpo._uidecorator;
9 |
10 | @uiheader("Basics", "WindowHeader2")
11 | export class WindowHeader2 extends kunpo.WindowHeader {
12 | @uiprop btn_close: fgui.GButton;
13 | protected onInit(): void {
14 | this.adapterType = kunpo.AdapterType.Bang;
15 |
16 | this.btn_close.onClick(() => {
17 | kunpo.log("WindowHeader btn_close");
18 | }, this);
19 | }
20 |
21 | protected onShow(window: kunpo.Window, userdata?: any): void {
22 | kunpo.log("WindowHeader onShow:");
23 | }
24 |
25 | protected onHide(): void {
26 | kunpo.log("WindowHeader onHide");
27 | }
28 |
29 | protected onClose(): void {
30 | kunpo.log("WindowHeader onClose");
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/assets/script/UI/Basics/Header/WindowHeader2.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "2a956cae-8688-40b9-89d3-86407a1f3631",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/CloseAllWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "c59e1239-0afc-4df7-b1e9-b7b968b48709",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/CloseOneWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "ecbe9481-c878-4ffd-863c-d9db4641ef2a",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Components.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "3896f27e-b6e5-4757-a872-8a1b925a24f3",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Condition.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "aa136c25-aeef-4b18-9051-246cf5cd1176",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Condition/ConditionWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "addf31f0-70a4-4238-8b2f-c9971873eaa9",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/ConditionWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "d73deef4-cfcf-4381-8ff4-afee0930c850",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Game.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "d0871aff-1fb9-4f5b-96d6-dc008b804d82",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Game/GameWindow.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-16
4 | * @Description: 战斗界面
5 | */
6 |
7 | import { ECManager } from "kunpocc";
8 | import { componentUpdateOrderList } from "../../ec/ComponentTypes";
9 | import { cc, fgui, kunpo } from "../../header";
10 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
11 |
12 | @uiclass("Window", "Game", "GameWindow")
13 | export class GameWindow extends kunpo.Window {
14 | @uiprop container: fgui.GComponent;
15 | public onInit() {
16 | console.log("GameWindow onInit");
17 | this.adapterType = kunpo.AdapterType.Full;
18 | this.type = kunpo.WindowType.CloseAll;
19 | this.bgAlpha = 0;
20 | }
21 |
22 | protected onShow() {
23 | console.log("GameWindow onShow");
24 | /** 创建一个ec世界的节点 */
25 | let node = new cc.Node();
26 | this.container.node.addChild(node);
27 |
28 | /**
29 | * 创建一个ec世界
30 | * 参数1: 世界名称
31 | * 参数2: 世界节点
32 | * 参数3: 组件更新顺序列表
33 | * 参数4: 实体池的最大缓存数量,多余的不会被缓存,根据需要调整
34 | * 参数5: 预创建的实体数量,根据需要调整
35 | */
36 | kunpo.log("需要更新的组件", componentUpdateOrderList);
37 | ECManager.createECWorld("world", node, componentUpdateOrderList, 100, 10);
38 | }
39 |
40 | protected onClose() {
41 | /** 退出游戏时 销毁ec世界 */
42 | ECManager.destroyECWorld("world");
43 | }
44 |
45 | @uiclick
46 | private onBack(): void {
47 | kunpo.WindowManager.showWindow("HomeWindow");
48 | }
49 |
50 | @uiclick
51 | private onCreateEntity(): void {
52 | /** 创建一个实体 */
53 | ECManager.createEntity("world", "entity1");
54 | }
55 |
56 | protected onUpdate(dt: number): void {
57 | /** 更新ec世界 */
58 | ECManager.getECWorld("world").update(dt);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/assets/script/UI/Game/GameWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "a1219f10-6ffc-40bf-82ec-9dd62f255fb5",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/HideAllWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "1a445c8e-e43f-46b8-8483-c721a76d716e",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/HideOneWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "34d16557-9a49-4995-8331-123fe8e47e79",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/HomeWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "a82b56f3-6cfa-4fd1-a090-44137d7e62d4",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/HotUpdate.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "d1a31574-d301-493b-9a96-b3bfcba60ba9",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/HotUpdate/HotUpdateWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "25c11bf0-c7a2-4b27-8172-22a0fba89114",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/MiniGame.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "fc664f7f-0b4b-406b-8240-8c6b974b3c38",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/MiniGame/MiniGameWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "1b9f360b-3ad4-4eb1-9092-1fdab6270a16",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/PopWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "5377ee34-e10a-4312-9e6e-d4c3e242a880",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/PopWindowHeader1.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "a7ecfd55-c16b-4dbf-9451-e11dd2bbdb40",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/PopWindowHeader2.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "d2f063c7-ff7e-44c7-85bb-9ca5f4f452e4",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Socket.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "dd0d6cdf-59a4-446e-840b-ddd9c17db824",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Socket/SocketTestWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "bf8b0dec-aa56-401f-bec1-f9200ac1042d",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/SocketTestWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.23",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "f4e808a7-37da-486d-b371-35f2d4f4918b",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "151a2b6f-f082-4e0f-bf54-718c31f777af",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/CloseAllWindow.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-21
4 | * @Description:
5 | */
6 | import { fgui, kunpo } from "../../header";
7 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
8 |
9 | @uiclass("Window", "Window", "CloseAllWindow")
10 | export class CloseAllWindow extends kunpo.Window {
11 | @uiprop btn_close: fgui.GButton;
12 | protected onInit(): void {
13 | this.adapterType = kunpo.AdapterType.Bang;
14 | this.type = kunpo.WindowType.CloseAll;
15 | }
16 |
17 | protected onShow(userdata?: any): void {
18 | kunpo.log("CloseAllWindow onShow:", userdata);
19 | }
20 |
21 | protected onHide(): void {
22 | kunpo.log("CloseAllWindow onHide");
23 | }
24 |
25 | protected onCover(): void {
26 | kunpo.log("CloseAllWindow onCover");
27 | }
28 |
29 | protected onRecover(): void {
30 | kunpo.log("CloseAllWindow onRecover");
31 | }
32 |
33 | protected onShowFromHide(): void {
34 | kunpo.log("CloseAllWindow onShowFromHide");
35 | }
36 |
37 | protected onEmptyAreaClick(): void {
38 | kunpo.log("CloseAllWindow 点击空白区域");
39 | }
40 |
41 | protected onClose(): void {
42 | kunpo.log("CloseAllWindow onClose");
43 | }
44 |
45 | @uiclick
46 | private onClickBtnClose(): void {
47 | kunpo.WindowManager.closeWindow(this.name);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/CloseAllWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "323b9ed8-0b74-4c65-99d4-a9e46e33cd6a",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/CloseOneWindow.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-21
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from "../../header";
8 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
9 |
10 | @uiclass("Window", "Window", "CloseOneWindow")
11 | export class CloseOneWindow extends kunpo.Window {
12 | @uiprop btn_close: fgui.GButton;
13 | protected onInit(): void {
14 | this.adapterType = kunpo.AdapterType.Bang;
15 | this.type = kunpo.WindowType.CloseOne;
16 | }
17 |
18 | protected onShow(userdata?: any): void {
19 | kunpo.log("CloseOneWindow onShow:", userdata);
20 | }
21 |
22 | protected onHide(): void {
23 | kunpo.log("CloseOneWindow onHide");
24 | }
25 |
26 | protected onCover(): void {
27 | kunpo.log("CloseOneWindow onCover");
28 | }
29 |
30 | protected onRecover(): void {
31 | kunpo.log("CloseOneWindow onRecover");
32 | }
33 |
34 | protected onShowFromHide(): void {
35 | kunpo.log("CloseOneWindow onShowFromHide");
36 | }
37 |
38 | protected onEmptyAreaClick(): void {
39 | kunpo.log("CloseOneWindow 点击空白区域");
40 | }
41 |
42 | protected onClose(): void {
43 | kunpo.log("CloseOneWindow onClose");
44 | }
45 |
46 | @uiclick
47 | private onClickBtnClose(): void {
48 | kunpo.WindowManager.closeWindow(this.name);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/CloseOneWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "f107c3dc-ff92-4b78-8384-b8908fa51bd8",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/Components.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "179bd030-c5da-4803-a8aa-999bc7106a35",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/Components/CustomComponents.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-26
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from "../../../header";
8 | const { uiheader, uiprop, uicom, uiclick } = kunpo._uidecorator;
9 |
10 | @uicom("Window", "CustomComponents")
11 | export class CustomComponents extends fgui.GComponent {
12 | @uiprop n1: fgui.GTextField;
13 |
14 | public onInit(): void {
15 | kunpo.log("CustomComponents onInit");
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/Components/CustomComponents.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "a8d4cfe1-8b55-4d01-8a17-fddb82a3c035",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/HideAllWindow.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-21
4 | * @Description:
5 | */
6 | import { fgui, kunpo } from "../../header";
7 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
8 |
9 | @uiclass("Window", "Window", "HideAllWindow")
10 | export class HideAllWindow extends kunpo.Window {
11 | @uiprop btn_close: fgui.GButton;
12 | protected onInit(): void {
13 | this.adapterType = kunpo.AdapterType.Bang;
14 | this.type = kunpo.WindowType.HideAll;
15 | }
16 |
17 | protected onShow(userdata?: any): void {
18 | kunpo.log("HideAllWindow onShow:", userdata);
19 | }
20 |
21 | protected onHide(): void {
22 | kunpo.log("HideAllWindow onHide");
23 | }
24 |
25 | protected onCover(): void {
26 | kunpo.log("HideAllWindow onCover");
27 | }
28 |
29 | protected onRecover(): void {
30 | kunpo.log("HideAllWindow onRecover");
31 | }
32 |
33 | protected onShowFromHide(): void {
34 | kunpo.log("HideAllWindow onShowFromHide");
35 | }
36 |
37 | protected onEmptyAreaClick(): void {
38 | kunpo.log("HideAllWindow 点击空白区域");
39 | }
40 |
41 | protected onClose(): void {
42 | kunpo.log("HideAllWindow onClose");
43 | }
44 |
45 | @uiclick
46 | private onClickBtnClose(): void {
47 | kunpo.WindowManager.closeWindow(this.name);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/HideAllWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "c9f63827-cffb-45c8-9bde-6580385ef829",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/HideOneWindow.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-21
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from "../../header";
8 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
9 |
10 | @uiclass("Window", "Window", "HideOneWindow")
11 | export class HideOneWindow extends kunpo.Window {
12 | @uiprop btn_close: fgui.GButton;
13 | protected onInit(): void {
14 | this.adapterType = kunpo.AdapterType.Bang;
15 | this.type = kunpo.WindowType.HideOne;
16 | }
17 |
18 | protected onShow(userdata?: any): void {
19 | kunpo.log("HideOneWindow onShow:", userdata);
20 | }
21 |
22 | protected onHide(): void {
23 | kunpo.log("HideOneWindow onHide");
24 | }
25 |
26 | protected onCover(): void {
27 | kunpo.log("HideOneWindow onCover");
28 | }
29 |
30 | protected onRecover(): void {
31 | kunpo.log("HideOneWindow onRecover");
32 | }
33 |
34 | protected onShowFromHide(): void {
35 | kunpo.log("HideOneWindow onShowFromHide");
36 | }
37 |
38 | protected onEmptyAreaClick(): void {
39 | kunpo.log("HideOneWindow 点击空白区域");
40 | }
41 |
42 | protected onClose(): void {
43 | kunpo.log("HideOneWindow onClose");
44 | }
45 |
46 | @uiclick
47 | private onClickBtnClose(): void {
48 | kunpo.WindowManager.closeWindow(this.name);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/HideOneWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "3735a1a5-aa89-42a5-b71d-07b405970080",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/PopWindow.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-12
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from "../../header";
8 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
9 |
10 | @uiclass("Window", "Window", "PopWindow")
11 | export class PopWindow extends kunpo.Window {
12 | @uiprop btn_close: fgui.GButton;
13 | protected onInit(): void {
14 | this.adapterType = kunpo.AdapterType.Bang;
15 | this.type = kunpo.WindowType.Normal;
16 | }
17 |
18 | @uiclick
19 | private onCloseWindow(): void {
20 | kunpo.WindowManager.closeWindow(this.name);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/PopWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "3f040196-71f3-4af5-af01-ca1c2ed874b8",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/PopWindowHeader1.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2024-12-14
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from "../../header";
8 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
9 |
10 | @uiclass("Window", "Window", "PopWindowHeader1")
11 | export class PopWindowHeader1 extends kunpo.Window {
12 | @uiprop btn_close: fgui.GButton;
13 | protected onInit(): void {
14 | this.adapterType = kunpo.AdapterType.Bang;
15 | this.type = kunpo.WindowType.Normal;
16 | }
17 |
18 | getHeaderInfo(): kunpo.WindowHeaderInfo {
19 | return kunpo.WindowHeaderInfo.create("WindowHeader", "aaa");
20 | }
21 |
22 | @uiclick
23 | private onCloseWindow(): void {
24 | kunpo.WindowManager.closeWindow(this.name);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/PopWindowHeader1.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "0760d294-bd0b-4749-b644-0cfe78c3e5d9",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/PopWindowHeader2.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-12
4 | * @Description:
5 | */
6 |
7 | import { fgui, kunpo } from "../../header";
8 | const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
9 |
10 | @uiclass("Window", "Window", "PopWindowHeader2")
11 | export class PopWindowHeader2 extends kunpo.Window {
12 | @uiprop btn_close: fgui.GButton;
13 | protected onInit(): void {
14 | this.adapterType = kunpo.AdapterType.Bang;
15 | this.type = kunpo.WindowType.Normal;
16 | }
17 |
18 | getHeaderInfo(): kunpo.WindowHeaderInfo {
19 | return kunpo.WindowHeaderInfo.create("WindowHeader2", "aaa");
20 | }
21 |
22 | @uiclick
23 | private onCloseWindow(): void {
24 | kunpo.WindowManager.closeWindow(this.name);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/PopWindowHeader2.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "28191db1-d974-4911-9fe5-2104cfc45050",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UI/Window/UIBaseWindow.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "95f0b543-53f1-416e-a789-d1cc9de0e2a8",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/UIPackageRegister.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-26
4 | * @Description:
5 | */
6 | import { kunpo } from './header';
7 | export class UIPackageRegister {
8 | public static Register(): void {
9 | kunpo.WindowManager.initPackageConfig({
10 | config: {
11 | /** UI所在resources中的路径 */
12 | uiPath: "ui",
13 | /**
14 | * 手动管理资源的包
15 | * 1. 用于基础UI包, 提供一些最基础的组件,所有其他包都可能引用其中的内容
16 | * 2. 资源header所在的包
17 | * 3. 用于一些特殊场景, 比如需要和其他资源一起加载, 并且显示进度条的包
18 | */
19 | manualPackages: ["Basics", "Home"],
20 | /**
21 | * 不推荐配置 只是提供一种特殊需求的实现方式
22 | * 窗口引用到其他包中的资源 需要的配置信息
23 | */
24 | linkPackages: {},
25 | /**
26 | * 关闭界面后,需要立即释放资源的包名(建议尽量少)
27 | * 一般不建议包进行频繁装载卸载,因为每次装载卸载必然是要消耗CPU时间(意味着耗电)和产生大量GC的。UI系统占用的内存是可以精确估算的,你可以按照包的使用频率设定哪些包是需要立即释放的。
28 | * 不包括手动管理的包
29 | */
30 | imReleasePackages: [],
31 | },
32 | showWaitWindow: this._showWaitWindow,
33 | hideWaitWindow: this._hideWaitWindow,
34 | fail: this._fail,
35 | });
36 | }
37 |
38 | private static _showWaitWindow(): void {
39 | console.log("显示资源加载等待窗");
40 | kunpo.WindowManager.showWindow("LoadUIWindow");
41 | }
42 |
43 | private static _hideWaitWindow(): void {
44 | console.log("关闭资源加载等待窗");
45 | kunpo.WindowManager.closeWindow("LoadUIWindow");
46 | }
47 |
48 | private static _fail(windowName: string, errmsg: string, pkgs: string[]): void {
49 | console.log("资源加载失败", windowName, errmsg, pkgs);
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/assets/script/UIPackageRegister.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "f2a30cc8-4ea8-461f-86d0-d8d77d9076f4",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/condition.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "68249aa2-e13d-4d56-b368-3e66145a80c6",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/condition/Condition1.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-17
4 | * @Description: 条件1 关联数据conditon1
5 | */
6 | import { DataHelper } from '../Data/DataHelper';
7 | import { kunpo } from '../header';
8 | import { ConditionType } from './ConditionType';
9 | const { conditionClass } = kunpo._conditionDecorator;
10 |
11 | @conditionClass(ConditionType.Condition1)
12 | export class Condition1 extends kunpo.ConditionBase {
13 | protected onInit(): void {
14 | kunpo.GlobalEvent.add("condition1", () => {
15 | this.tryUpdate();
16 | }, this);
17 | }
18 |
19 | protected evaluate(): boolean {
20 | return DataHelper.getValue("condition1", true);
21 | }
22 | }
--------------------------------------------------------------------------------
/assets/script/condition/Condition1.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "3be3041b-9739-434b-9394-4213b24b3b59",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/condition/Condition2.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-17
4 | * @Description: 条件2 关联数据condition2
5 | */
6 | import { DataHelper } from '../Data/DataHelper';
7 | import { kunpo } from '../header';
8 | import { ConditionType } from './ConditionType';
9 | const { conditionClass } = kunpo._conditionDecorator;
10 |
11 | @conditionClass(ConditionType.Condition2)
12 | export class Condition2 extends kunpo.ConditionBase {
13 | protected onInit(): void {
14 | kunpo.GlobalEvent.add("condition2", () => {
15 | this.tryUpdate();
16 | }, this);
17 | }
18 |
19 | protected evaluate(): boolean {
20 | return DataHelper.getValue("condition2", true);
21 | }
22 | }
--------------------------------------------------------------------------------
/assets/script/condition/Condition2.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "1b1192af-5665-46b9-baeb-d33adc76ac6b",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/condition/Condition3.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-17
4 | * @Description: 条件3 关联数据condition3
5 | */
6 | import { DataHelper } from '../Data/DataHelper';
7 | import { kunpo } from '../header';
8 | import { ConditionType } from './ConditionType';
9 | const { conditionClass } = kunpo._conditionDecorator;
10 |
11 | @conditionClass(ConditionType.Condition3)
12 | export class Condition3 extends kunpo.ConditionBase {
13 | protected onInit(): void {
14 | kunpo.GlobalEvent.add("condition3", () => {
15 | this.tryUpdate();
16 | }, this);
17 | }
18 |
19 | protected evaluate(): boolean {
20 | return DataHelper.getValue("condition3", true);
21 | }
22 | }
--------------------------------------------------------------------------------
/assets/script/condition/Condition3.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "754a11fe-b670-49db-b515-f654b6362c57",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/condition/Condition4.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-17
4 | * @Description: 条件4 关联数据condition4
5 | */
6 | import { DataHelper } from '../Data/DataHelper';
7 | import { kunpo } from '../header';
8 | import { ConditionType } from './ConditionType';
9 | const { conditionClass } = kunpo._conditionDecorator;
10 |
11 | @conditionClass(ConditionType.Condition4)
12 | export class Condition4 extends kunpo.ConditionBase {
13 | protected onInit(): void {
14 | kunpo.GlobalEvent.add("condition4", () => {
15 | this.tryUpdate();
16 | }, this);
17 | }
18 |
19 | protected evaluate(): boolean {
20 | return DataHelper.getValue("condition4", true);
21 | }
22 | }
--------------------------------------------------------------------------------
/assets/script/condition/Condition4.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "858a7e41-647f-4043-ae03-a669cacff1d6",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/condition/ConditionType.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-17
4 | * @Description: 条件类型
5 | */
6 |
7 | export enum ConditionType {
8 | None = 0,
9 | Condition1 = 1,
10 | Condition2 = 2,
11 | Condition3 = 3,
12 | Condition4 = 4,
13 | }
--------------------------------------------------------------------------------
/assets/script/condition/ConditionType.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "76bebac7-4436-4411-b37a-caae5c016357",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "a9df110e-7f31-4a2a-91de-94a0d1306de6",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/ComponentTypes.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: gongxh
3 | * @Date: 2025-01-23
4 | * @Description: 组件枚举
5 | */
6 |
7 | import { cc } from "../header";
8 |
9 | /** 数据组件类型 */
10 | enum DataComponentType {
11 | Health,
12 | Transform,
13 | RootNode,
14 | LimitMove,
15 | /** 渲染组件 (多个) */
16 | Render,
17 | }
18 |
19 | /** 逻辑组件类型 (组件更新数据从上到下) */
20 | export enum SystemComponentType {
21 | Move = 100000,
22 | ScreenRebound,
23 |
24 | /** 位置更新系统 */
25 | PositionUpdateSystem = 120000,
26 | }
27 |
28 | export const ComponentType = {
29 | ...DataComponentType,
30 | ...SystemComponentType
31 | };
32 | export type ComponentType = DataComponentType | SystemComponentType;
33 |
34 | /** 自定义组件更新顺序列表 */
35 | export const componentUpdateOrderList = cc.Enum.getList(cc.Enum(SystemComponentType)).map(item => item.value).sort((a, b) => a - b);
--------------------------------------------------------------------------------
/assets/script/ec/ComponentTypes.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "75b11872-fd1c-40a8-a6af-65fae78a326f",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "d6ec5d03-5c0a-401d-8914-b58abff75e44",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "1663e56c-73f6-4784-8653-4ddc69562a7f",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/Health.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "5ee50822-a6b6-4d42-a270-5b7ab82b9abf",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/LimitMove.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "82c6a59e-ebab-4274-bdcb-808e4892c661",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/Move.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-24
4 | * @Description: 移动组件
5 | */
6 |
7 | import { kunpo } from "../../../header";
8 | import { ComponentType } from "../../ComponentTypes";
9 | import { LimitMove } from "./LimitMove";
10 | import { Transform } from "./Transform";
11 | const { ecclass, ecprop } = kunpo._ecdecorator;
12 |
13 | @ecclass("Move", ComponentType.Move, { describe: "移动组件" })
14 | export class Move extends kunpo.Component {
15 | @ecprop({ type: "int", defaultValue: 0, displayName: "移动速度" })
16 | private _speed: number = 0;
17 |
18 | private _transform: Transform = null;
19 | private _limitmove: LimitMove = null;
20 | protected onAdd(): void {
21 | this.needUpdate = true;
22 | }
23 |
24 | protected onEnter(): void {
25 | this._limitmove = this.getComponent(ComponentType.LimitMove);
26 | this._transform = this.getComponent(ComponentType.Transform);
27 | }
28 |
29 | protected onRemove(): void {
30 |
31 | }
32 |
33 | protected onUpdate(dt: number): void {
34 | let speed = this.speed;
35 |
36 | let moveDir = this._transform.getMoveDir();
37 | let moveX = moveDir.x * speed * dt;
38 | let moveY = moveDir.y * speed * dt;
39 |
40 | if (this._limitmove) {
41 | let { newX, newY } = this._limitmove.limitAdjust(moveX, moveY);
42 | this._transform.setPosition(newX, newY);
43 | } else {
44 | let cur_pos = this._transform.getPosition();
45 | this._transform.setPosition(cur_pos.x + moveX, cur_pos.y + moveY);
46 | }
47 | }
48 |
49 | public get speed(): number {
50 | return this._speed;
51 | }
52 |
53 | public set speed(value: number) {
54 | this._speed = value;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/Move.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "9aa628f4-030a-466f-bce4-54bbedcea82e",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/PositionUpdateSystem.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2023-04-26
4 | * @Description: 位置更新系统
5 | */
6 | import { kunpo } from "../../../header";
7 | import { ComponentType } from "../../ComponentTypes";
8 | import { RootNode } from "./RootNode";
9 | import { Transform } from "./Transform";
10 | const { ecclass, ecprop } = kunpo._ecdecorator;
11 |
12 | @ecclass("PositionUpdateSystem", ComponentType.PositionUpdateSystem, { describe: "位置更新系统" })
13 | export class PositionUpdateSystem extends kunpo.Component {
14 | private _transform: Transform = null;
15 | private _rootnode: RootNode = null;
16 |
17 | protected onAdd(): void {
18 | this.needUpdate = true;
19 | }
20 |
21 | protected onEnter(): void {
22 | this._transform = this.getComponent(ComponentType.Transform);
23 | this._rootnode = this.getComponent(ComponentType.RootNode);
24 | this._rootnode.node.setPosition(this._transform.getPosition());
25 | }
26 |
27 | protected onRemove(): void {
28 | this._transform = null;
29 | this._rootnode = null;
30 | }
31 |
32 | protected onUpdate(): void {
33 | if (!this._transform || !this._rootnode) {
34 | return;
35 | }
36 | this._rootnode.node.setPosition(this._transform.getPosition());
37 | }
38 | }
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/PositionUpdateSystem.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "48604cdb-d518-4370-8985-50ed26a209e2",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/RenderPrefab.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-12
4 | * @Description:
5 | */
6 | import { cc, kunpo } from "../../../header";
7 | import { ComponentType } from "../../ComponentTypes";
8 | import { RootNode } from "./RootNode";
9 | const { ecclass, ecprop } = kunpo._ecdecorator;
10 |
11 | @ecclass("RenderPrefab", ComponentType.Render, { describe: "预制体渲染组件" })
12 | export class RenderPrefab extends kunpo.Component {
13 | @ecprop({ type: "prefab", defaultValue: "", displayName: "预制体" })
14 | private uuid: string = "";
15 |
16 | private _node: cc.Node = null;
17 |
18 | private _rootnode: RootNode = null;
19 | protected onAdd(): void {
20 | this.needUpdate = false;
21 | }
22 |
23 | protected onEnter(): void {
24 | this._rootnode = this.getComponent(ComponentType.RootNode);
25 |
26 | let prefab = kunpo.AssetPool.getByUUID(this.uuid);
27 | let node = cc.instantiate(prefab);
28 | this._rootnode.node.addChild(node);
29 | this._node = node;
30 | }
31 |
32 | protected onRemove(): void {
33 | // 组件删除时 把node回收 自行实现
34 | this._node.destroy();
35 | }
36 | }
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/RenderPrefab.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "1a9573be-659e-4d77-8c67-3cf753d1f7f4",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/RenderTexture.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-02-10
4 | * @Description: 纹理组件
5 | */
6 | import { cc, kunpo } from "../../../header";
7 | import { ComponentType } from "../../ComponentTypes";
8 | import { RootNode } from "./RootNode";
9 | const { ecclass, ecprop } = kunpo._ecdecorator;
10 |
11 | @ecclass("RenderTexture", ComponentType.Render, { describe: "渲染组件" })
12 | export class RenderTexture extends kunpo.Component {
13 | @ecprop({ type: "spriteframe", defaultValue: "", displayName: "图片" })
14 | private uuid: string = "";
15 |
16 | private _node: cc.Node = null;
17 |
18 | private _rootnode: RootNode = null;
19 | protected onAdd(): void {
20 | this.needUpdate = false;
21 | }
22 |
23 | protected onEnter(): void {
24 | this._rootnode = this.getComponent(ComponentType.RootNode);
25 |
26 | let node = new cc.Node();
27 | this._rootnode.node.addChild(node);
28 | this._node = node;
29 |
30 | let sprite = node.addComponent(cc.Sprite);
31 | sprite.spriteFrame = kunpo.AssetPool.getByUUID(this.uuid);
32 | }
33 |
34 | protected onRemove(): void {
35 | // 组件删除时 把node回收 自行实现
36 | this._node.destroy();
37 | }
38 | }
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/RenderTexture.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "5651a1fe-0d20-4dde-a2ab-1bae9ce340ab",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/RootNode.ts:
--------------------------------------------------------------------------------
1 | import { cc, kunpo } from "../../../header";
2 | import { ComponentType } from "../../ComponentTypes";
3 |
4 | const { ecclass, ecprop } = kunpo._ecdecorator;
5 |
6 | @ecclass("RootNode", ComponentType.RootNode, { describe: "实体根节点组件" })
7 | export class RootNode extends kunpo.Component {
8 | private _node: cc.Node = null;
9 | protected onAdd(): void {
10 | this.needUpdate = false;
11 |
12 | let rootnode = new cc.Node();
13 | kunpo.ECManager.getECWorldNode(this.entity.entityManager.name).addChild(rootnode);
14 | this._node = rootnode;
15 | }
16 |
17 | protected onEnter(): void {
18 |
19 | }
20 |
21 | protected onRemove(): void {
22 | this._node.destroy()
23 | }
24 |
25 | public get node(): cc.Node {
26 | return this._node;
27 | }
28 | }
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/RootNode.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "60700cf4-2ca0-4c49-a8c7-1847bc27b4e5",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/ScreenRebound.ts:
--------------------------------------------------------------------------------
1 | import { kunpo } from "../../../header";
2 | import { ComponentType } from "../../ComponentTypes";
3 | import { LimitMove, LimitType } from "./LimitMove";
4 | import { Transform } from "./Transform";
5 |
6 | const { ecclass, ecprop } = kunpo._ecdecorator;
7 |
8 | @ecclass("ScreenRebound", ComponentType.ScreenRebound, { describe: "屏幕边缘反弹组件" })
9 | export class ScreenRebound extends kunpo.Component {
10 | private _transform: Transform = null;
11 | private _limitmove: LimitMove = null;
12 |
13 | protected onAdd(): void {
14 | this.needUpdate = true;
15 | }
16 |
17 | protected onEnter(): void {
18 | this._transform = this.getComponent(ComponentType.Transform);
19 | this._limitmove = this.getComponent(ComponentType.LimitMove);
20 | }
21 |
22 | protected onRemove(): void {
23 | this._transform = null;
24 | this._limitmove = null;
25 | }
26 |
27 | protected onUpdate(dt: number): void {
28 | let limitType = this._limitmove.limitType;
29 | let moveDir = this._transform.getMoveDir();
30 | if (limitType == LimitType.LimitAll) {
31 | this._transform.setMoveDir(-moveDir.x, -moveDir.y);
32 | } else if (limitType == LimitType.LimitX) {
33 | this._transform.setMoveDir(-moveDir.x, moveDir.y);
34 | } else if (limitType == LimitType.LimitY) {
35 | this._transform.setMoveDir(moveDir.x, -moveDir.y);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/ScreenRebound.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "0ae10c81-0abc-4659-8e0d-516f9c44132c",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/component/basic/Transform.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "b487c1f4-cb11-452b-81b0-05f1d66c6cfe",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/ec/singleton.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "856ba813-32c7-4fcb-855c-9fe9d4a01fe8",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/header.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-01-15
4 | * @Description:
5 | */
6 |
7 | import * as cc from "cc";
8 | import * as fgui from "fairygui-cc";
9 | import * as kunpo from "kunpocc";
10 | import * as protoRoot from './Socket/proto/proto.js';
11 |
12 | type ProtoType = typeof protoRoot;
13 | const proto = (protoRoot["default"] || protoRoot) as ProtoType;
14 | export const protocol = proto.com.kunpo.proto;
15 |
16 | export { cc, fgui, kunpo };
17 |
18 |
--------------------------------------------------------------------------------
/assets/script/header.ts.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "4.0.24",
3 | "importer": "typescript",
4 | "imported": true,
5 | "uuid": "5a04ea14-2275-42d1-87e6-157402a30a33",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/script/kunpolib.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "20f6ade1-f37f-4b59-9945-6431970a76f1",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/uiconfig.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.0",
3 | "importer": "directory",
4 | "imported": true,
5 | "uuid": "c0c7df86-d7a3-450e-b5c6-b93d9701ab92",
6 | "files": [],
7 | "subMetas": {},
8 | "userData": {}
9 | }
10 |
--------------------------------------------------------------------------------
/assets/uiconfig/ui_config.json.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "2.0.1",
3 | "importer": "json",
4 | "imported": true,
5 | "uuid": "35d3b8e9-0096-4aa9-82a1-505784157bf8",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {}
11 | }
12 |
--------------------------------------------------------------------------------
/assets/version.json:
--------------------------------------------------------------------------------
1 | {"version":"0.0.1"}
--------------------------------------------------------------------------------
/assets/version.json.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "2.0.1",
3 | "importer": "json",
4 | "imported": true,
5 | "uuid": "a9ad4467-afe4-4869-abde-5c8bdb301339",
6 | "files": [
7 | ".json"
8 | ],
9 | "subMetas": {},
10 | "userData": {}
11 | }
12 |
--------------------------------------------------------------------------------
/assets/version.manifest:
--------------------------------------------------------------------------------
1 | {"remoteManifestUrl":"https://cdn-laonainai.lanfeitech.com/test/hot-update-debug/v0.0.1/android/0/project.manifest","remoteVersionUrl":"https://cdn-laonainai.lanfeitech.com/test/hot-update-debug/v0.0.1/android/version.manifest","version":"0","packageUrl":"https://cdn-laonainai.lanfeitech.com/test/hot-update-debug/v0.0.1/android/0"}
--------------------------------------------------------------------------------
/assets/version.manifest.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.0",
3 | "importer": "*",
4 | "imported": true,
5 | "uuid": "4c477e27-edde-4d59-9963-d7f41168d40e",
6 | "files": [
7 | ".json",
8 | ".manifest"
9 | ],
10 | "subMetas": {},
11 | "userData": {}
12 | }
13 |
--------------------------------------------------------------------------------
/excel/test.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/excel/test.xlsx
--------------------------------------------------------------------------------
/extensions-config/.gitignore:
--------------------------------------------------------------------------------
1 | local/
--------------------------------------------------------------------------------
/extensions-config/entity/entity1.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "entity1",
3 | "alias": "实体23",
4 | "group": "",
5 | "components": [
6 | {
7 | "name": "RootNode",
8 | "props": {}
9 | },
10 | {
11 | "name": "Transform",
12 | "props": {}
13 | },
14 | {
15 | "name": "Move",
16 | "props": {
17 | "_speed": 120
18 | }
19 | },
20 | {
21 | "name": "LimitMove",
22 | "props": {
23 | "radius": 30
24 | }
25 | },
26 | {
27 | "name": "PositionUpdateSystem",
28 | "props": {}
29 | },
30 | {
31 | "name": "ScreenRebound",
32 | "props": {}
33 | },
34 | {
35 | "name": "RenderPrefab",
36 | "props": {
37 | "uuid": "56dc9bdf-19c7-4319-8c27-628ea6424696"
38 | }
39 | }
40 | ]
41 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Basics/AlertWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "bg": {
4 | "name": "bg",
5 | "idPath": "n0_eqwn",
6 | "namePath": "bg"
7 | },
8 | "btn_close": {
9 | "name": "btn_close",
10 | "idPath": "n3_eqwn",
11 | "namePath": "btn_close"
12 | },
13 | "btn_ok": {
14 | "name": "btn_ok",
15 | "idPath": "n9_kjg6",
16 | "namePath": "btn_ok"
17 | },
18 | "btn_cancel": {
19 | "name": "btn_cancel",
20 | "idPath": "n10_jtaa",
21 | "namePath": "btn_cancel"
22 | },
23 | "lab_title": {
24 | "name": "lab_title",
25 | "idPath": "n2_eqwn",
26 | "namePath": "lab_title"
27 | },
28 | "lab_content": {
29 | "name": "lab_content",
30 | "idPath": "n4_eqwn",
31 | "namePath": "lab_content"
32 | }
33 | },
34 | "callbacks": {
35 | "onClickBtnClose": {
36 | "name": "btn_close",
37 | "idPath": "n3_eqwn",
38 | "namePath": "btn_close"
39 | },
40 | "onClickBtnCancel": {
41 | "name": "btn_cancel",
42 | "idPath": "n10_jtaa",
43 | "namePath": "btn_cancel"
44 | },
45 | "onClickBtnOk": {
46 | "name": "btn_ok",
47 | "idPath": "n9_kjg6",
48 | "namePath": "btn_ok"
49 | }
50 | },
51 | "__version__": "0.0.1"
52 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Basics/LoadUIWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "lab_desc": {
4 | "name": "lab_tips",
5 | "idPath": "n1_tihq",
6 | "namePath": "lab_tips"
7 | }
8 | },
9 | "callbacks": {},
10 | "__version__": "0.0.1"
11 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Basics/ToastWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "toast": {
4 | "name": "toast",
5 | "idPath": "n1_e679",
6 | "namePath": "toast"
7 | },
8 | "labTips": {
9 | "name": "labTips",
10 | "idPath": "n1_e679/n0_8ej8",
11 | "namePath": "toast/labTips"
12 | },
13 | "bgMask": {
14 | "name": "bgMask",
15 | "idPath": "n2_q3s0",
16 | "namePath": "bgMask"
17 | }
18 | },
19 | "callbacks": {},
20 | "__version__": "0.0.1"
21 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Basics/WindowHeader.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "n0",
5 | "idPath": "n0_g5jd",
6 | "namePath": "n0"
7 | }
8 | },
9 | "callbacks": {},
10 | "__version__": "0.0.1"
11 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Basics/WindowHeader2.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "n0",
5 | "idPath": "n0_g5jd",
6 | "namePath": "n0"
7 | }
8 | },
9 | "callbacks": {},
10 | "__version__": "0.0.1"
11 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Condition/ConditionWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "reddot1": {
4 | "name": "reddot1",
5 | "idPath": "n7_eiv0",
6 | "namePath": "reddot1"
7 | },
8 | "reddot2": {
9 | "name": "reddot2",
10 | "idPath": "n8_eiv0",
11 | "namePath": "reddot2"
12 | },
13 | "btn_condition1": {
14 | "name": "btn_condition1",
15 | "idPath": "n9_eiv0",
16 | "namePath": "btn_condition1"
17 | },
18 | "btn_condition2": {
19 | "name": "btn_condition2",
20 | "idPath": "n10_eiv0",
21 | "namePath": "btn_condition2"
22 | },
23 | "btn_condition3": {
24 | "name": "btn_condition3",
25 | "idPath": "n11_eiv0",
26 | "namePath": "btn_condition3"
27 | },
28 | "btn_condition4": {
29 | "name": "btn_condition4",
30 | "idPath": "n12_eiv0",
31 | "namePath": "btn_condition4"
32 | }
33 | },
34 | "callbacks": {
35 | "onClickBtnClose": {
36 | "name": "btn_close",
37 | "idPath": "n4_fnoh",
38 | "namePath": "btn_close"
39 | },
40 | "onClickBtnCondition1": {
41 | "name": "btn_condition1",
42 | "idPath": "n9_eiv0",
43 | "namePath": "btn_condition1"
44 | },
45 | "onClickBtnCondition2": {
46 | "name": "btn_condition2",
47 | "idPath": "n10_eiv0",
48 | "namePath": "btn_condition2"
49 | },
50 | "onClickBtnCondition3": {
51 | "name": "btn_condition3",
52 | "idPath": "n11_eiv0",
53 | "namePath": "btn_condition3"
54 | },
55 | "onClickBtnCondition4": {
56 | "name": "btn_condition4",
57 | "idPath": "n12_eiv0",
58 | "namePath": "btn_condition4"
59 | }
60 | },
61 | "__version__": "0.0.1"
62 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Game/GameWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "container": {
4 | "name": "container",
5 | "idPath": "n0_qphy",
6 | "namePath": "container"
7 | },
8 | "btn_back": {
9 | "name": "btn _back",
10 | "idPath": "n1_cmn3",
11 | "namePath": "btn _back"
12 | }
13 | },
14 | "callbacks": {
15 | "onBack": {
16 | "name": "btn _back",
17 | "idPath": "n1_cmn3",
18 | "namePath": "btn _back"
19 | },
20 | "onCreateEntity": {
21 | "name": "btn _add",
22 | "idPath": "n2_y5yg",
23 | "namePath": "btn _add"
24 | }
25 | },
26 | "__version__": "0.0.1"
27 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/CloseAllWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/CloseOneWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/ConditionWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "reddot1": {
4 | "name": "reddot1",
5 | "idPath": "n7_eiv0",
6 | "namePath": "reddot1"
7 | },
8 | "reddot2": {
9 | "name": "reddot2",
10 | "idPath": "n8_eiv0",
11 | "namePath": "reddot2"
12 | },
13 | "btn_condition1": {
14 | "name": "btn_condition1",
15 | "idPath": "n9_eiv0",
16 | "namePath": "btn_condition1"
17 | },
18 | "btn_condition2": {
19 | "name": "btn_condition2",
20 | "idPath": "n10_eiv0",
21 | "namePath": "btn_condition2"
22 | },
23 | "btn_condition3": {
24 | "name": "btn_condition3",
25 | "idPath": "n11_eiv0",
26 | "namePath": "btn_condition3"
27 | },
28 | "btn_condition4": {
29 | "name": "btn_condition4",
30 | "idPath": "n12_eiv0",
31 | "namePath": "btn_condition4"
32 | }
33 | },
34 | "callbacks": {
35 | "onClickBtnClose": {
36 | "name": "btn_close",
37 | "idPath": "n4_fnoh",
38 | "namePath": "btn_close"
39 | },
40 | "onClickBtnCondition1": {
41 | "name": "btn_condition1",
42 | "idPath": "n9_eiv0",
43 | "namePath": "btn_condition1"
44 | },
45 | "onClickBtnCondition2": {
46 | "name": "btn_condition2",
47 | "idPath": "n10_eiv0",
48 | "namePath": "btn_condition2"
49 | },
50 | "onClickBtnCondition3": {
51 | "name": "btn_condition3",
52 | "idPath": "n11_eiv0",
53 | "namePath": "btn_condition3"
54 | },
55 | "onClickBtnCondition4": {
56 | "name": "btn_condition4",
57 | "idPath": "n12_eiv0",
58 | "namePath": "btn_condition4"
59 | }
60 | },
61 | "__version__": "0.0.1"
62 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/CustomComponents.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "n1": {
4 | "name": "n1",
5 | "idPath": "n1_hg37",
6 | "namePath": "n1"
7 | }
8 | },
9 | "callbacks": {},
10 | "__version__": "0.0.1"
11 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/HideAllWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/HideOneWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/PopWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n2_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onCloseWindow": {
11 | "name": "btn_close",
12 | "idPath": "n2_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/PopWindowHeader1.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n2_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onCloseWindow": {
11 | "name": "btn_close",
12 | "idPath": "n2_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/PopWindowHeader2.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n2_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onCloseWindow": {
11 | "name": "btn_close",
12 | "idPath": "n2_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Home/SocketTestWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "text_input": {
4 | "name": "text_input",
5 | "idPath": "n6_jwlw",
6 | "namePath": "text_input"
7 | },
8 | "text_input_message": {
9 | "name": "text_input_message",
10 | "idPath": "n9_jwlw",
11 | "namePath": "text_input_message"
12 | }
13 | },
14 | "callbacks": {
15 | "onCloseWindow": {
16 | "name": "btn_close",
17 | "idPath": "n2_fnoh",
18 | "namePath": "btn_close"
19 | },
20 | "onDisconnect": {
21 | "name": "btn_stop",
22 | "idPath": "n5_jwlw",
23 | "namePath": "btn_stop"
24 | },
25 | "onConnection": {
26 | "name": "btn_start",
27 | "idPath": "n3_jwlw",
28 | "namePath": "btn_start"
29 | },
30 | "onSend": {
31 | "name": "btn_send",
32 | "idPath": "n4_jwlw",
33 | "namePath": "btn_send"
34 | },
35 | "onSendText": {
36 | "name": "btn_send",
37 | "idPath": "n4_jwlw",
38 | "namePath": "btn_send"
39 | },
40 | "onSendBinary": {
41 | "name": "btn_send_protobuf",
42 | "idPath": "n10_fxlq",
43 | "namePath": "btn_send_protobuf"
44 | }
45 | },
46 | "__version__": "0.0.1"
47 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/HotUpdate/HotUpdateWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n24_jevi",
6 | "namePath": "btn_close"
7 | },
8 | "lab_version": {
9 | "name": "lab_version",
10 | "idPath": "n25_74au",
11 | "namePath": "lab_version"
12 | },
13 | "lab_desc": {
14 | "name": "lab_desc",
15 | "idPath": "n26_74au",
16 | "namePath": "lab_desc"
17 | }
18 | },
19 | "callbacks": {
20 | "onCheckUpdate": {
21 | "name": "btn_check",
22 | "idPath": "n1_zmnj",
23 | "namePath": "btn_check"
24 | },
25 | "onStartUpdate": {
26 | "name": "btn_update",
27 | "idPath": "n22_jevi",
28 | "namePath": "btn_update"
29 | },
30 | "onClickClose": {
31 | "name": "btn_close",
32 | "idPath": "n24_jevi",
33 | "namePath": "btn_close"
34 | }
35 | },
36 | "__version__": "0.0.1"
37 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/MiniGame/MiniGameWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n24_jevi",
6 | "namePath": "btn_close"
7 | },
8 | "lab_adid": {
9 | "name": "lab_adid",
10 | "idPath": "n25_jevi",
11 | "namePath": "lab_adid"
12 | },
13 | "lab_payQuantity": {
14 | "name": "lab_pay",
15 | "idPath": "n28_jevi",
16 | "namePath": "lab_pay"
17 | }
18 | },
19 | "callbacks": {
20 | "onClickBtnPay": {
21 | "name": "btn_pay",
22 | "idPath": "n22_jevi",
23 | "namePath": "btn_pay"
24 | },
25 | "onClickBtnInitAds": {
26 | "name": "btn_ads",
27 | "idPath": "n1_zmnj",
28 | "namePath": "btn_ads"
29 | },
30 | "onClickBtnClose": {
31 | "name": "btn_close",
32 | "idPath": "n24_jevi",
33 | "namePath": "btn_close"
34 | }
35 | },
36 | "__version__": "0.0.1"
37 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Socket/SocketTestWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "text_input": {
4 | "name": "text_input",
5 | "idPath": "n6_jwlw",
6 | "namePath": "text_input"
7 | },
8 | "text_input_message": {
9 | "name": "text_input_message",
10 | "idPath": "n9_jwlw",
11 | "namePath": "text_input_message"
12 | }
13 | },
14 | "callbacks": {
15 | "onCloseWindow": {
16 | "name": "btn_close",
17 | "idPath": "n2_fnoh",
18 | "namePath": "btn_close"
19 | },
20 | "onDisconnect": {
21 | "name": "btn_stop",
22 | "idPath": "n5_jwlw",
23 | "namePath": "btn_stop"
24 | },
25 | "onConnection": {
26 | "name": "btn_start",
27 | "idPath": "n3_jwlw",
28 | "namePath": "btn_start"
29 | },
30 | "onSendText": {
31 | "name": "btn_send",
32 | "idPath": "n4_jwlw",
33 | "namePath": "btn_send"
34 | },
35 | "onSendBinary": {
36 | "name": "btn_send_protobuf",
37 | "idPath": "n10_fxlq",
38 | "namePath": "btn_send_protobuf"
39 | }
40 | },
41 | "__version__": "0.0.1"
42 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/CloseAllWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/CloseOneWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/CustomComponents.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "n1": {
4 | "name": "n1",
5 | "idPath": "n1_hg37",
6 | "namePath": "n1"
7 | }
8 | },
9 | "callbacks": {},
10 | "__version__": "0.0.1"
11 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/HideAllWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/HideOneWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n4_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onClickBtnClose": {
11 | "name": "btn_close",
12 | "idPath": "n4_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/PopWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n2_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onCloseWindow": {
11 | "name": "btn_close",
12 | "idPath": "n2_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/PopWindowHeader1.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n2_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onCloseWindow": {
11 | "name": "btn_close",
12 | "idPath": "n2_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/PopWindowHeader2.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {
3 | "btn_close": {
4 | "name": "btn_close",
5 | "idPath": "n2_fnoh",
6 | "namePath": "btn_close"
7 | }
8 | },
9 | "callbacks": {
10 | "onCloseWindow": {
11 | "name": "btn_close",
12 | "idPath": "n2_fnoh",
13 | "namePath": "btn_close"
14 | }
15 | },
16 | "__version__": "0.0.1"
17 | }
--------------------------------------------------------------------------------
/extensions-config/fgui/Window/UIBaseWindow.json:
--------------------------------------------------------------------------------
1 | {
2 | "props": {},
3 | "callbacks": {
4 | "onClickBtnHeader1": {
5 | "name": "btn_header1",
6 | "idPath": "n1_zmnj",
7 | "namePath": "btn_header1"
8 | },
9 | "onClickBtnHeader2": {
10 | "name": "btn_header2",
11 | "idPath": "n12_wx4p",
12 | "namePath": "btn_header2"
13 | },
14 | "onClickBtnCloseOne": {
15 | "name": "btn_closeone",
16 | "idPath": "n4_zmnj",
17 | "namePath": "btn_closeone"
18 | },
19 | "onClickBtnCloseAll": {
20 | "name": "btn_closeall",
21 | "idPath": "n5_zmnj",
22 | "namePath": "btn_closeall"
23 | },
24 | "onClickBtnHideOne": {
25 | "name": "btn_hideone",
26 | "idPath": "n13_wx4p",
27 | "namePath": "btn_hideone"
28 | },
29 | "onClickBtnHideAll": {
30 | "name": "btn_hideall",
31 | "idPath": "n14_wx4p",
32 | "namePath": "btn_hideall"
33 | },
34 | "onClickBtnEmpty": {
35 | "name": "btn_empty",
36 | "idPath": "n3_zmnj",
37 | "namePath": "btn_empty"
38 | },
39 | "onClickBtnClose": {
40 | "name": "btn_close",
41 | "idPath": "n22_sf8l",
42 | "namePath": "btn_close"
43 | }
44 | },
45 | "__version__": "0.0.1"
46 | }
--------------------------------------------------------------------------------
/lib.d.ts/SDKHelper.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-03-21
4 | * @Description:
5 | */
6 |
7 | declare namespace KunpoSDK {
8 | class SDKHelper {
9 | static getInstance(): SDKHelper;
10 |
11 | public getSystemInfo(): void;
12 | public getVersionCode(): string;
13 | public getBuildCode(): number;
14 |
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/native/engine/android/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 | /captures
8 |
--------------------------------------------------------------------------------
/native/engine/android/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.8)
2 |
3 | option(APP_NAME "Project Name" "kunpocreator")
4 | project(${APP_NAME} CXX)
5 | set(CC_LIB_NAME cocos)
6 | set(CC_PROJECT_DIR ${CMAKE_CURRENT_LIST_DIR})
7 | set(CC_PROJ_SOURCES)
8 | set(CC_COMMON_SOURCES)
9 | set(CC_ALL_SOURCES)
10 |
11 | include(${CMAKE_CURRENT_LIST_DIR}/../common/CMakeLists.txt)
12 |
13 | list(APPEND CC_COMMON_SOURCES
14 | ${CMAKE_CURRENT_LIST_DIR}/../common/Classes/JNIAndroid/JniTools.h
15 | ${CMAKE_CURRENT_LIST_DIR}/../common/Classes/JNIAndroid/JniTools.cpp
16 | )
17 |
18 | cc_android_before_target(${CC_LIB_NAME})
19 | add_library(${CC_LIB_NAME} SHARED ${CC_ALL_SOURCES})
20 | cc_android_after_target(${CC_LIB_NAME})
21 |
--------------------------------------------------------------------------------
/native/engine/android/Post-service.cmake:
--------------------------------------------------------------------------------
1 | # Supported for Cocos Service!
--------------------------------------------------------------------------------
/native/engine/android/Pre-service.cmake:
--------------------------------------------------------------------------------
1 | # Supported for Cocos Service!
--------------------------------------------------------------------------------
/native/engine/android/app/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/native/engine/android/app/src/com/kunpo/KunpoHelper.java:
--------------------------------------------------------------------------------
1 | package com.kunpo;
2 |
3 | import android.app.Activity;
4 | import android.content.pm.PackageInfo;
5 | import android.content.pm.PackageManager;
6 | import android.util.Log;
7 |
8 | public class KunpoHelper {
9 | private static final String TAG = "kunpo helper::";
10 |
11 | private static Activity _activity = null;
12 | public static void setActivity(Activity activity) {
13 | _activity = activity;
14 | }
15 |
16 | public static void getSystemInfo() {
17 |
18 | }
19 |
20 | public static String getVersionCode() {
21 | String localVersion = "0.0.1";
22 | try {
23 | PackageInfo packageInfo = _activity.getApplicationContext().getPackageManager().getPackageInfo(_activity.getPackageName(), 0);
24 | localVersion = packageInfo.versionName;
25 | } catch (PackageManager.NameNotFoundException e) {
26 | e.printStackTrace();
27 | }
28 | return localVersion;
29 | }
30 |
31 | public static int getBuildCode() {
32 | int localVersion = 0;
33 | try {
34 | PackageInfo packageInfo = _activity.getApplicationContext().getPackageManager().getPackageInfo(_activity.getPackageName(), 0);
35 | localVersion = packageInfo.versionCode;
36 | } catch (PackageManager.NameNotFoundException e) {
37 | e.printStackTrace();
38 | }
39 | return localVersion;
40 | }
41 |
42 | /**
43 | * 回调给JS层的接口
44 | * @param json 格式 { function: string, args: string }
45 | */
46 | public static native void CallJS(String json);
47 | }
48 |
--------------------------------------------------------------------------------
/native/engine/android/build-cfg.json:
--------------------------------------------------------------------------------
1 | {
2 | "ndk_module_path" :[
3 | "${COCOS_ROOT}",
4 | "${COCOS_ROOT}/cocos",
5 | "${COCOS_ROOT}/external"
6 | ],
7 | "copy_resources": []
8 | }
9 |
--------------------------------------------------------------------------------
/native/engine/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 |
5 | repositories {
6 | google()
7 | mavenCentral()
8 | // jcenter() // keeped as anchor, will be removed soon
9 | }
10 | dependencies {
11 | classpath 'com.android.tools.build:gradle:8.0.2'
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | google()
21 | mavenCentral()
22 | // jcenter() // keeped as anchor, will be removed soon
23 | }
24 | }
25 |
26 | task clean(type: Delete) {
27 | delete rootProject.buildDir
28 | }
29 |
--------------------------------------------------------------------------------
/native/engine/android/instantapp/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/native/engine/android/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/android/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/native/engine/android/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/android/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/native/engine/android/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/android/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/native/engine/android/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/android/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/native/engine/android/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/android/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/native/engine/android/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/native/engine/common/.gitignore:
--------------------------------------------------------------------------------
1 | localCfg.cmake
--------------------------------------------------------------------------------
/native/engine/common/Classes/Game.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | Copyright (c) 2018 Xiamen Yaji Software Co., Ltd.
3 |
4 | http://www.cocos.com
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated engine source code (the "Software"), a limited,
8 | worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 | to use Cocos Creator solely to develop games on your target platforms. You
10 | shall not use Cocos Creator software for developing other software or tools
11 | that's used for developing games. You are not granted to publish, distribute,
12 | sublicense, and/or sell copies of Cocos Creator.
13 |
14 | The software or tools in this License Agreement are licensed, not sold.
15 | Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to
16 | you.
17 |
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | THE SOFTWARE.
25 | ****************************************************************************/
26 | #pragma once
27 |
28 | #include "cocos/cocos.h"
29 |
30 | /**
31 | @brief The cocos2d Application.
32 |
33 | The reason for implement as private inheritance is to hide some interface call
34 | by Director.
35 | */
36 | class Game : public cc::BaseGame {
37 | public:
38 | Game();
39 | int init() override;
40 | // bool init() override;
41 | void onPause() override;
42 | void onResume() override;
43 | void onClose() override;
44 | };
45 |
--------------------------------------------------------------------------------
/native/engine/common/Classes/JNIAndroid/JniTools.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // JniTools.cpp
3 | // kungpowGame
4 | //
5 | // Created by GongXH on 2021/3/26.
6 | //
7 |
8 | #include "JniTools.h"
9 | #include "../SDKHelper.h"
10 | #include
11 | #include
12 | #include
13 | #include "application/ApplicationManager.h"
14 | using namespace cc;
15 |
16 | #define KUNPO_HELPER "com/kunpo/KunpoHelper"
17 |
18 | std::string JniTools::getVersionCode() {
19 | return JniHelper::callStaticStringMethod(KUNPO_HELPER,"getVersionCode");
20 | }
21 |
22 | int JniTools::getBuildCode() {
23 | return JniHelper::callStaticIntMethod(KUNPO_HELPER,"getBuildCode");
24 | }
25 |
26 | #pragma -mark java回调c++
27 | #if (CC_PLATFORM == CC_PLATFORM_ANDROID)
28 | extern "C"
29 | {
30 | JNIEXPORT void Java_com_kunpo_KunpoHelper_CallJS(JNIEnv* env, jclass thiz, jstring jsjson)
31 | {
32 | std::string json = JniHelper::jstring2string(jsjson);
33 | CC_CURRENT_ENGINE()->getScheduler()->performFunctionInCocosThread([=]() {
34 | KunpoSDK::SDKHelper::getInstance()->callJS(json.c_str());
35 | });
36 | }
37 | }
38 | #endif
39 |
--------------------------------------------------------------------------------
/native/engine/common/Classes/JNIAndroid/JniTools.h:
--------------------------------------------------------------------------------
1 | //
2 | // JniTools.hpp
3 | // ZumaGame
4 | //
5 | // Created by GongXH on 2021/3/26.
6 | //
7 |
8 | #ifndef JniTools_hpp
9 | #define JniTools_hpp
10 | #include "cocos.h"
11 | class JniTools
12 | {
13 | public:
14 | //调用Java的方法
15 | static std::string getVersionCode();
16 | static int getBuildCode();
17 | };
18 | #endif /* JniTools_hpp */
19 |
--------------------------------------------------------------------------------
/native/engine/common/Classes/SDKHelper.cpp:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-03-21
4 | * @Description:
5 | */
6 | #include "SDKHelper.h"
7 | #if (CC_PLATFORM == CC_PLATFORM_ANDROID)
8 | #include "JNIAndroid/JniTools.h"
9 | #elif (CC_PLATFORM == CC_PLATFORM_IOS)
10 |
11 | #endif
12 |
13 | using namespace KunpoSDK;
14 | namespace KunpoSDK {
15 | }
16 |
17 | static SDKHelper helper;
18 |
19 | SDKHelper * SDKHelper::getInstance() {
20 | return &helper;
21 | }
22 |
23 | SDKHelper::SDKHelper() {
24 |
25 | }
26 |
27 | /** 获取系统信息 */
28 | void SDKHelper::getSystemInfo() {
29 | #if (CC_PLATFORM == CC_PLATFORM_ANDROID)
30 | // return JniTools::getSystemInfo();
31 | #elif (CC_PLATFORM == CC_PLATFORM_IOS)
32 |
33 | #endif
34 | }
35 |
36 | std::string SDKHelper::getVersionCode() {
37 | CC_LOG_DEBUG("SDKHelper 获取版本号");
38 | #if (CC_PLATFORM == CC_PLATFORM_ANDROID)
39 | return JniTools::getVersionCode();
40 | #elif (CC_PLATFORM == CC_PLATFORM_IOS)
41 |
42 | #endif
43 |
44 | return "0.0.1";
45 | }
46 |
47 | int SDKHelper::getBuildCode() {
48 | CC_LOG_DEBUG("SDKHelper 获取Build号");
49 | #if (CC_PLATFORM == CC_PLATFORM_ANDROID)
50 | return JniTools::getBuildCode();
51 | #elif (CC_PLATFORM == CC_PLATFORM_IOS)
52 |
53 | #endif
54 | return 0;
55 | }
56 |
57 |
58 | void SDKHelper::callJS(const char *jsonString) {
59 | se::Value callJsHandler;
60 | if (se::ScriptEngine::getInstance()->getGlobalObject()->getProperty("KunpoNativeCallJsHandler", &callJsHandler) && callJsHandler.isObject()) {
61 | se::ValueArray args;
62 | args.push_back(se::Value(jsonString));
63 | callJsHandler.toObject()->call(args, callJsHandler.toObject());
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/native/engine/common/Classes/SDKHelper.h:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-03-21
4 | * @Description:
5 | */
6 |
7 | #pragma once
8 | #include "cocos/cocos.h"
9 |
10 | namespace KunpoSDK {
11 |
12 | class SDKHelper {
13 | public:
14 | /** 单例 */
15 | static SDKHelper * getInstance();
16 |
17 | SDKHelper();
18 |
19 | /** 获取系统信息 */
20 | void getSystemInfo();
21 | /** 获取版本号 */
22 | std::string getVersionCode();
23 | /** 获取build号 */
24 | int getBuildCode();
25 |
26 | /**
27 | * c++ 回调 js
28 | * 参数:jsonString 格式 { function: string, args: string }
29 | */
30 | void callJS(const char* jsonString);
31 | private:
32 |
33 | };
34 | }
35 |
--------------------------------------------------------------------------------
/native/engine/common/cocos-version.json:
--------------------------------------------------------------------------------
1 | {"version":"3.8.6","skipCheck":false}
2 |
--------------------------------------------------------------------------------
/native/engine/common/localCfg.cmake:
--------------------------------------------------------------------------------
1 | ## Add or overwrite options from cfg.cmake.
2 | ## This file is ignored from git.
3 | # set(NODE_EXECUTABLE /opt/...)
--------------------------------------------------------------------------------
/native/engine/common/xr.cmake:
--------------------------------------------------------------------------------
1 |
2 | include(${COCOS_X_PATH}/cmake/predefine.cmake)
3 |
4 | if(NOT DEFINED XR_COMMON_SOURCES)
5 | set(XR_COMMON_SOURCES)
6 | endif()
7 |
8 | if(NOT DEFINED XR_LIBS)
9 | set(XR_LIBS)
10 | endif()
11 |
12 | if(NOT DEFINED XR_COMMON_PATH)
13 | set(XR_COMMON_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../extensions/xr-plugin/common)
14 | endif()
15 |
16 | if(NOT DEFINED XR_LIBRARY_PATH)
17 | set(XR_LIBRARY_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../extensions/xr-plugin/platforms)
18 | endif()
19 |
20 | include(${XR_COMMON_PATH}/xr.cmake)
21 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /local.properties
3 | /oh_modules
4 | /.idea
5 | **/build
6 | /.hvigor
7 | log.txt
8 | oh-package-lock.json5
9 | .clang-format
10 | .clang-tidy
11 | .clangd
12 | /entry/oh_modules
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/AppScope/app.json5:
--------------------------------------------------------------------------------
1 | {
2 | "app": {
3 | "bundleName": "com.kunpo.test",
4 | "vendor": "example",
5 | "versionCode": 1,
6 | "versionName": "0.0.1",
7 | "icon": "$media:app_icon",
8 | "label": "$string:app_name",
9 | "distributedNotificationEnabled": true
10 | }
11 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/AppScope/resources/base/element/string.json:
--------------------------------------------------------------------------------
1 | {
2 | "string": [
3 | {
4 | "name": "app_name",
5 | "value": "kunpocreator"
6 | }
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/AppScope/resources/base/media/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/harmonyos-next/AppScope/resources/base/media/app_icon.png
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # the minimum version of CMake.
2 |
3 | cmake_minimum_required(VERSION 3.8)
4 | set(CC_LIB_NAME cocos)
5 | set(CC_PROJ_SOURCES)
6 | set(CC_COMMON_SOURCES)
7 | set(CC_ALL_SOURCES)
8 |
9 | option(APP_NAME "Project Name" "test-cases")
10 | project(${APP_NAME} CXX)
11 |
12 | set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -Werror=return-type")
13 | set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
14 |
15 | include(${COMMON_DIR}/CMakeLists.txt)
16 |
17 | cc_openharmony_before_target(${CC_LIB_NAME})
18 | add_library(${CC_LIB_NAME} SHARED ${CC_ALL_SOURCES})
19 | cc_openharmony_after_target(${CC_LIB_NAME})
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/build-profile.json5:
--------------------------------------------------------------------------------
1 | {
2 | "app": {
3 | "signingConfigs": [
4 | ],
5 | "products": [
6 | {
7 | "name": "default",
8 | "signingConfig": "default",
9 | "compatibleSdkVersion": "5.0.1(13)",
10 | "runtimeOS": "HarmonyOS"
11 | }
12 | ],
13 | "buildModeSet": [
14 | {
15 | "name": "debug"
16 | },
17 | {
18 | "name": "release"
19 | }
20 | ]
21 | },
22 | "modules": [
23 | {
24 | "name": "entry",
25 | "srcPath": "./entry",
26 | "targets": [
27 | {
28 | "name": "default",
29 | "applyToProducts": [
30 | "default"
31 | ]
32 | }
33 | ]
34 | }
35 | ]
36 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/.gitignore:
--------------------------------------------------------------------------------
1 | /oh_modules
2 | /.preview
3 | /build
4 | /.cxx
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/build-profile.json5:
--------------------------------------------------------------------------------
1 | {
2 | apiType: 'stageMode',
3 | buildOption: {
4 | externalNativeOptions: {
5 | path: '../CMakeLists.txt',
6 | arguments: 'arm-linux-ohos -DOHOS_STL=c++_shared -DRES_DIR=/Users/gongxh/work/kunpo-lib/KunpoDemo/build/harmonyos-next -DCOMMON_DIR=/Users/gongxh/work/kunpo-lib/KunpoDemo/native/engine/common -DOPENHARMONY=1',
7 | abiFilters: [
8 | 'arm64-v8a',
9 | ],
10 | cppFlags: '',
11 | },
12 | },
13 | targets: [
14 | {
15 | name: 'default',
16 | },
17 | ],
18 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/hvigorfile.ts:
--------------------------------------------------------------------------------
1 | // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.
2 | export { hapTasks } from '@ohos/hvigor-ohos-plugin';
3 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/oh-package.json5:
--------------------------------------------------------------------------------
1 | {
2 | "license": "",
3 | "devDependencies": {},
4 | "author": "",
5 | "name": "entry",
6 | "description": "Please describe the basic information.",
7 | "main": "",
8 | "version": "1.0.0",
9 | "dependencies": {
10 | "libcocos.so": "file:./src/main/cpp/types/libcocos"
11 | }
12 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/cpp/types/libcocos/index.d.ts:
--------------------------------------------------------------------------------
1 | import { ContextType } from '../../../ets/common/Constants';
2 | import resourceManager from '@ohos.resourceManager';
3 |
4 | export interface context {
5 | onPageShow: () => void;
6 | onPageHide: () => void;
7 | workerInit: () => void;
8 | postMessage: (msgType: string, msgData: string) => void;
9 | postSyncMessage: (msgType: string, msgData: string) => Promise;
10 | setPostMessageFunction: (postMessage: (msgType: string, msgData: string) => void) => void;
11 | setPostSyncMessageFunction: (postSyncMessage: (msgType: string, msgData: string) => void) => void;
12 | nativeEngineInit: () => void;
13 | nativeEngineStart: () => void;
14 | onTextChange: (param: string) => void;
15 | onComplete: (param: string) => void;
16 | onConfirm: (param: string) => void;
17 | shouldStartLoading: (viewTag: number, url: string) => void;
18 | finishLoading: (viewTag: number, url: string) => void;
19 | failLoading: (viewTag: number, url: string) => void;
20 | onBackPress: () => void;
21 | onCreate: () => void;
22 | onDestroy: () => void;
23 | onShow: () => void;
24 | onHide: () => void;
25 | resourceManagerInit: (resourceManager: resourceManager.ResourceManager) => void;
26 | writablePathInit: (cacheDir: string) => void;
27 | onVideoEvent: (param: string) => void;
28 | registerFunction: (name:string ,fun:Function) => void;
29 | }
30 |
31 | export const getContext: (type: ContextType) => context;
32 | export const evalString: (value: string) => any;
33 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/cpp/types/libcocos/oh-package.json5:
--------------------------------------------------------------------------------
1 | {
2 | "name": "libcocos.so",
3 | "types": "./index.d.ts",
4 | "version": "1.0.0",
5 | "description": "Please describe the basic information."
6 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/ets/common/Constants.ts:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | Copyright (c) 2022-2023 Xiamen Yaji Software Co., Ltd.
3 |
4 | http://www.cocos.com
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated engine source code (the "Software"), a limited,
8 | worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 | to use Cocos Creator solely to develop games on your target platforms. You shall
10 | not use Cocos Creator software for developing other software or tools that's
11 | used for developing games. You are not granted to publish, distribute,
12 | sublicense, and/or sell copies of Cocos Creator.
13 |
14 | The software or tools in this License Agreement are licensed, not sold.
15 | Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | THE SOFTWARE.
24 | ****************************************************************************/
25 | export enum ContextType {
26 | APP_LIFECYCLE = 0,
27 | JSPAGE_LIFECYCLE,
28 | XCOMPONENT_CONTEXT,
29 | XCOMPONENT_REGISTER_LIFECYCLE_CALLBACK,
30 | NATIVE_RENDER_API,
31 | WORKER_INIT,
32 | ENGINE_UTILS,
33 | EDITBOX_UTILS,
34 | WEBVIEW_UTILS,
35 | DISPLAY_UTILS,
36 | UV_ASYNC_SEND,
37 | VIDEO_UTILS
38 | }
39 |
40 | export class Constants {
41 | static readonly APP_KEY_WORKER_MANAGER = "app_key_worker_manager";
42 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/module.json5:
--------------------------------------------------------------------------------
1 | {
2 | "module": {
3 | "name": "entry",
4 | "type": "entry",
5 | "description": "$string:entry_desc",
6 | "mainElement": "EntryAbility",
7 | "deviceTypes": [
8 | "default"
9 | ],
10 | "requestPermissions": [
11 | {
12 | "name": "ohos.permission.INTERNET"
13 | },
14 | {
15 | "name": "ohos.permission.VIBRATE"
16 | },
17 | {
18 | "name": "ohos.permission.GET_NETWORK_INFO"
19 | },
20 | {
21 | "name": "ohos.permission.ACCELEROMETER"
22 | },
23 | {
24 | "name": "ohos.permission.GYROSCOPE"
25 | }
26 | ],
27 | "deliveryWithInstall": true,
28 | "installationFree": false,
29 | "pages": "$profile:main_pages",
30 | "abilities": [
31 | {
32 | "name": "EntryAbility",
33 | "srcEntry": "./ets/entryability/EntryAbility.ets",
34 | "description": "$string:MainAbility_desc",
35 | "orientation": "portrait",
36 | "icon": "$media:icon",
37 | "label": "$string:MainAbility_label",
38 | "startWindowIcon": "$media:icon",
39 | "removeMissionAfterTerminate": true,
40 | "startWindowBackground": "$color:white",
41 | "supportWindowMode": [
42 | "fullscreen"
43 | ],
44 | "exported": true,
45 | "skills": [
46 | {
47 | "entities": [
48 | "entity.system.home"
49 | ],
50 | "actions": [
51 | "action.system.home"
52 | ]
53 | }
54 | ]
55 | }
56 | ]
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/resources/.gitignore:
--------------------------------------------------------------------------------
1 | /rawfile/
2 | .DS_Store
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/resources/base/element/color.json:
--------------------------------------------------------------------------------
1 | {
2 | "color": [
3 | {
4 | "name": "white",
5 | "value": "#FFFFFF"
6 | },
7 | {
8 | "name": "black",
9 | "value": "#000000"
10 | }
11 | ]
12 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/resources/base/element/string.json:
--------------------------------------------------------------------------------
1 | {
2 | "string": [
3 | {
4 | "name": "entry_desc",
5 | "value": "description"
6 | },
7 | {
8 | "name": "MainAbility_label",
9 | "value": "kunpocreator"
10 | },
11 | {
12 | "name": "MainAbility_desc",
13 | "value": "description"
14 | },
15 | {
16 | "name": "permissions_label",
17 | "value": "label"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/resources/base/media/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/harmonyos-next/entry/src/main/resources/base/media/icon.png
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/entry/src/main/resources/base/profile/main_pages.json:
--------------------------------------------------------------------------------
1 | {
2 | "src": [
3 | "pages/index"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/hvigor/hvigor-config.json5:
--------------------------------------------------------------------------------
1 | {
2 | "modelVersion": "5.0.0",
3 | "dependencies": {
4 | },
5 | "execution": {
6 | // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */
7 | // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
8 | // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
9 | // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
10 | // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
11 | },
12 | "logging": {
13 | // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
14 | },
15 | "debugging": {
16 | // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
17 | },
18 | "nodeOptions": {
19 | // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
20 | // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
21 | }
22 | }
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/hvigorfile.ts:
--------------------------------------------------------------------------------
1 | import { appTasks } from '@ohos/hvigor-ohos-plugin';
2 |
3 | export default {
4 | system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
5 | plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
6 | }
7 |
--------------------------------------------------------------------------------
/native/engine/harmonyos-next/oh-package.json5:
--------------------------------------------------------------------------------
1 | {
2 | modelVersion: '5.0.0',
3 | devDependencies: {
4 | '@ohos/hypium': '1.0.18',
5 | '@ohos/hamock': '1.0.0',
6 | },
7 | author: '',
8 | name: 'kunpocreator',
9 | description: 'example description',
10 | main: '',
11 | version: '1.0.0',
12 | dependencies: {},
13 | }
--------------------------------------------------------------------------------
/native/engine/ios/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | Copyright (c) 2010-2013 cocos2d-x.org
3 | Copyright (c) 2013-2016 Chukong Technologies Inc.
4 | Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd.
5 |
6 | http://www.cocos.com
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining a copy
9 | of this software and associated engine source code (the "Software"), a limited,
10 | worldwide, royalty-free, non-assignable, revocable and non-exclusive license
11 | to use Cocos Creator solely to develop games on your target platforms. You
12 | shall not use Cocos Creator software for developing other software or tools
13 | that's used for developing games. You are not granted to publish, distribute,
14 | sublicense, and/or sell copies of Cocos Creator.
15 |
16 | The software or tools in this License Agreement are licensed, not sold.
17 | Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to
18 | you.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 | THE SOFTWARE.
27 | ****************************************************************************/
28 |
29 | #pragma once
30 |
31 | #import "platform/ios/AppDelegateBridge.h"
32 | #import
33 |
34 | @class ViewController;
35 |
36 | @interface AppDelegate : NSObject {
37 | }
38 |
39 | @property(nonatomic, readonly) ViewController *viewController;
40 | @property(nonatomic, readonly) AppDelegateBridge *appDelegateBridge;
41 | @end
42 |
--------------------------------------------------------------------------------
/native/engine/ios/Base.lproj/Localizable.strings:
--------------------------------------------------------------------------------
1 | /*
2 | Localizable.strings
3 | */
4 |
5 | "done" = "Done";
6 | "next" = "Next";
7 | "search" = "Search";
8 | "go" = "Go";
9 | "send" = "Send";
10 |
--------------------------------------------------------------------------------
/native/engine/ios/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.8)
2 |
3 | set(CMAKE_SYSTEM_NAME iOS)
4 | set(APP_NAME "kunpocreator" CACHE STRING "Project Name")
5 |
6 | project(${APP_NAME} CXX)
7 |
8 | set(CC_PROJECT_DIR ${CMAKE_CURRENT_LIST_DIR})
9 | set(CC_UI_RESOURCES)
10 | set(CC_PROJ_SOURCES)
11 | set(CC_ASSET_FILES)
12 | set(CC_COMMON_SOURCES)
13 | set(CC_ALL_SOURCES)
14 |
15 | include(${CC_PROJECT_DIR}/../common/CMakeLists.txt)
16 | set(EXECUTABLE_NAME ${APP_NAME}-mobile)
17 |
18 | cc_ios_before_target(${EXECUTABLE_NAME})
19 | add_executable(${EXECUTABLE_NAME} ${CC_ALL_SOURCES})
20 | cc_ios_after_target(${EXECUTABLE_NAME})
21 |
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/1024.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/114.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/120.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/180.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/29.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/40.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/57.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/58.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/60.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/80.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/Images.xcassets/AppIcon.appiconset/87.png
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"}]}
--------------------------------------------------------------------------------
/native/engine/ios/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/native/engine/ios/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UILaunchStoryboardName
6 | LaunchScreen
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleDisplayName
10 | ${PRODUCT_NAME}
11 | CFBundleExecutable
12 | ${CC_EXECUTABLE_NAME}
13 | CFBundleIcons~ipad
14 |
15 | CFBundleIdentifier
16 | ${MACOSX_BUNDLE_GUI_IDENTIFIER}
17 | CFBundleInfoDictionaryVersion
18 | 6.0
19 | CFBundleName
20 | ${PRODUCT_NAME}
21 | CFBundlePackageType
22 | APPL
23 | CFBundleShortVersionString
24 | 1.0.0
25 | CFBundleSignature
26 | ????
27 | CFBundleVersion
28 | 1.0
29 | LSRequiresIPhoneOS
30 |
31 | NSAppTransportSecurity
32 |
33 | NSAllowsArbitraryLoads
34 |
35 |
36 | UIPrerenderedIcon
37 |
38 | UIRequiredDeviceCapabilities
39 |
40 | accelerometer
41 |
42 | opengles-1
43 |
44 |
45 | UIRequiresFullScreen
46 |
47 | UIStatusBarHidden
48 |
49 | UISupportedInterfaceOrientations
50 |
51 | UIInterfaceOrientationPortrait
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/native/engine/ios/LaunchScreenBackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/LaunchScreenBackground.png
--------------------------------------------------------------------------------
/native/engine/ios/LaunchScreenBackgroundLandscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/LaunchScreenBackgroundLandscape.png
--------------------------------------------------------------------------------
/native/engine/ios/LaunchScreenBackgroundPortrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gongxh0901/KunpoDemo/bb733eca812200edfa0489b53a8c9bd0ccfaddc1/native/engine/ios/LaunchScreenBackgroundPortrait.png
--------------------------------------------------------------------------------
/native/engine/ios/Post-service.cmake:
--------------------------------------------------------------------------------
1 | # Supported for Cocos Service!
--------------------------------------------------------------------------------
/native/engine/ios/Pre-service.cmake:
--------------------------------------------------------------------------------
1 | # Supported for Cocos Service!
--------------------------------------------------------------------------------
/native/engine/ios/Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'HelloJavascript' target in the 'HelloJavascript' project
3 | //
4 |
5 | #ifdef __OBJC__
6 | #import
7 | #import
8 | #endif
9 |
--------------------------------------------------------------------------------
/native/engine/ios/ViewController.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | Copyright (c) 2013 cocos2d-x.org
3 | Copyright (c) 2013-2016 Chukong Technologies Inc.
4 | Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd.
5 |
6 | http://www.cocos.com
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining a copy
9 | of this software and associated engine source code (the "Software"), a limited,
10 | worldwide, royalty-free, non-assignable, revocable and non-exclusive license
11 | to use Cocos Creator solely to develop games on your target platforms. You
12 | shall not use Cocos Creator software for developing other software or tools
13 | that's used for developing games. You are not granted to publish, distribute,
14 | sublicense, and/or sell copies of Cocos Creator.
15 |
16 | The software or tools in this License Agreement are licensed, not sold.
17 | Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to
18 | you.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 | THE SOFTWARE.
27 | ****************************************************************************/
28 |
29 | #pragma once
30 |
31 | #import
32 |
33 | @interface ViewController : UIViewController
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/native/engine/ios/zh-Hans.lproj/Localizable.strings:
--------------------------------------------------------------------------------
1 | /*
2 | Localizable.strings
3 | */
4 |
5 | "done" = "完成";
6 | "next" = "下一个";
7 | "search" = "搜索";
8 | "go" = "前往";
9 | "send" = "发送";
10 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "kunpocreator",
3 | "uuid": "f5d24040-9cd4-4a5a-8559-38bf55e621f7",
4 | "creator": {
5 | "version": "3.8.6"
6 | },
7 | "dependencies": {
8 | "fairygui-cc": "^1.2.2",
9 | "kunpocc": "^1.0.38",
10 | "ts-node": "^10.9.2"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/proto/CommonMessage.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package com.kunpo.proto;
4 |
5 | message CommonMessage {
6 | // 请求命令类型: 0 心跳,1 业务
7 | int32 cmdCode=1;
8 | // 业务路由
9 | int32 protocolId=2;
10 | // 业务数据
11 | bytes data=3;
12 | // 响应码: 0:成功, 其他为有错误
13 | sint32 responseStatus=4;
14 | // 错误消息、异常消息
15 | string msg=5;
16 | // 消息标记号;由前端请求时设置,服务器响应时会携带上
17 | int32 msgId=6;
18 | }
19 |
--------------------------------------------------------------------------------
/proto/test.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package com.kunpo.proto.test;
4 |
5 | // 用户基本信息
6 | message UserInfo {
7 | int32 userId = 1;
8 | string userName = 2;
9 | string nickName = 3;
10 | int32 level = 4;
11 | int64 createTime = 5;
12 | }
13 |
--------------------------------------------------------------------------------
/settings/v2/packages/cocos-service.json:
--------------------------------------------------------------------------------
1 | {
2 | "__version__": "3.0.9",
3 | "game": {
4 | "name": "未知游戏",
5 | "app_id": "UNKNOW",
6 | "c_id": "0"
7 | },
8 | "appConfigMaps": [
9 | {
10 | "app_id": "UNKNOW",
11 | "config_id": "8c18cb"
12 | }
13 | ],
14 | "configs": [
15 | {
16 | "app_id": "UNKNOW",
17 | "config_id": "8c18cb",
18 | "config_name": "Default",
19 | "config_remarks": "",
20 | "services": []
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/settings/v2/packages/device.json:
--------------------------------------------------------------------------------
1 | {
2 | "__version__": "1.0.1"
3 | }
4 |
--------------------------------------------------------------------------------
/settings/v2/packages/information.json:
--------------------------------------------------------------------------------
1 | {
2 | "__version__": "1.0.1",
3 | "information": {
4 | "customSplash": {
5 | "id": "customSplash",
6 | "label": "customSplash",
7 | "enable": true,
8 | "customSplash": {
9 | "complete": false,
10 | "form": "https://creator-api.cocos.com/api/form/show?sid=39d299030f31eb42b71bc53d67bdc54e"
11 | }
12 | },
13 | "removeSplash": {
14 | "id": "removeSplash",
15 | "label": "removeSplash",
16 | "enable": true,
17 | "removeSplash": {
18 | "complete": false,
19 | "form": "https://creator-api.cocos.com/api/form/show?sid=39d299030f31eb42b71bc53d67bdc54e"
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/settings/v2/packages/program.json:
--------------------------------------------------------------------------------
1 | {
2 | "__version__": "1.0.4"
3 | }
4 |
--------------------------------------------------------------------------------
/settings/v2/packages/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "__version__": "1.0.6",
3 | "general": {
4 | "designResolution": {
5 | "height": 1334,
6 | "width": 750,
7 | "fitHeight": true
8 | },
9 | "highQuality": false
10 | },
11 | "custom_joint_texture_layouts": [],
12 | "script": {
13 | "preserveSymlinks": true
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/settings/v2/packages/scene.json:
--------------------------------------------------------------------------------
1 | {
2 | "__version__": "1.0.3",
3 | "current-scene": "bef93422-3e63-4c0f-a5cf-d926e7360673"
4 | }
5 |
--------------------------------------------------------------------------------
/tools/swig-config/swig-config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @Author: Gongxh
3 | * @Date: 2025-03-21
4 | * @Description:
5 | */
6 |
7 | 'use strict';
8 | const path = require('path');
9 |
10 | // 开发者自己的模块定义配置
11 | // configList 是必须的
12 | const configList = [
13 | [ 'SDKHelper.i', 'jsb_SDKHelper_auto.cpp' ],
14 | ];
15 |
16 | const projectRoot = path.resolve(path.join(__dirname, '..', '..'));
17 | // interfaceDir 是可选的
18 | const interfacesDir = path.join(projectRoot, 'tools', 'swig-config');
19 | // bindingsOutDir 是可选的
20 | const bindingsOutDir = path.join(projectRoot, 'native', 'engine', 'common', 'Classes', 'bindings', 'auto');
21 |
22 | // includeDirs 意思是 swig 执行时候使用的头文件搜索路径
23 | const includeDirs = [
24 | path.join(projectRoot, 'native', 'engine', 'common', 'Classes'),
25 | ];
26 |
27 | module.exports = {
28 | interfacesDir, // 可选参数, 如果没有指定,configList 中的路径必须为绝对路径或者相对于当前 swig-config.js 的相对路径
29 | bindingsOutDir, // 可选参数,如果没有指定, configList 中的路径必须为绝对路径或者相对于当前 swig-config.js 的相对路径
30 | includeDirs,
31 | configList // 必填参数
32 | };
33 |
34 |
35 | //
36 | // # 如果当前终端或者命令提示符所在的目录不是在 '/Users/abc/my-project/tools/swig-config'
37 | // node /Applications/Cocos/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/native/tools/swig-config/genbindings.js -c /Users/abc/my-project/tools/swig-config/swig-config.js
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | /* Base configuration. Do not edit this field. */
3 | "extends": "./temp/tsconfig.cocos.json",
4 | /* Add your custom configuration here. */
5 | "compilerOptions": {
6 | "strict": false,
7 | "module": "ES6",
8 | "target": "ES6"
9 | }
10 | }
--------------------------------------------------------------------------------