@ccgf/game-template 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/resources/views/gm/GmView.prefab +4101 -0
- package/assets/resources/views/{game/GameView.prefab.meta → gm/GmView.prefab.meta} +2 -2
- package/assets/resources/views/{game.meta → gm.meta} +1 -1
- package/assets/scenes/main.scene +1 -0
- package/assets/scripts/AppStart.ts +8 -0
- package/package.json +3 -3
- package/assets/resources/views/game/GameView.prefab +0 -1
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"ver": "1.1.50",
|
|
3
3
|
"importer": "prefab",
|
|
4
4
|
"imported": true,
|
|
5
|
-
"uuid": "
|
|
5
|
+
"uuid": "da95b319-895b-4d3f-bb20-05c30101ffe3",
|
|
6
6
|
"files": [
|
|
7
7
|
".json"
|
|
8
8
|
],
|
|
9
9
|
"subMetas": {},
|
|
10
10
|
"userData": {
|
|
11
|
-
"syncNodeName": "
|
|
11
|
+
"syncNodeName": "GmView"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/assets/scenes/main.scene
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { _decorator, Component, Node } from 'cc';
|
|
2
2
|
import { GameIns } from '@ccgf/framework';
|
|
3
|
+
import { Gm } from '@ccgf/framework';
|
|
4
|
+
import { DEBUG } from 'cc/env';
|
|
3
5
|
const { ccclass, property } = _decorator;
|
|
4
6
|
|
|
5
7
|
@ccclass('AppStart')
|
|
6
8
|
export class AppStart extends Component {
|
|
7
9
|
|
|
10
|
+
@property({ displayName: "是否启用GM" })
|
|
11
|
+
public enableGm = false;
|
|
12
|
+
|
|
8
13
|
protected onLoad(): void {
|
|
9
14
|
GameIns.init(this.node);
|
|
15
|
+
|
|
16
|
+
Gm.setEnabled(this.enableGm && DEBUG);
|
|
17
|
+
Gm.open();
|
|
10
18
|
}
|
|
11
19
|
|
|
12
20
|
start() { }
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"creator": {
|
|
5
5
|
"version": "3.8.8"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.2.
|
|
7
|
+
"version": "0.2.9",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@ccgf/framework": "^0.1.
|
|
22
|
-
"ccgf-game-tool": "^1.0.
|
|
21
|
+
"@ccgf/framework": "^0.1.6",
|
|
22
|
+
"ccgf-game-tool": "^1.0.15"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__type__":"cc.Prefab","_name":"GameView","_objFlags":0,"__editorExtras__":{},"_native":"","data":{"__id__":1},"optimizationPolicy":0,"persistent":false},{"__type__":"cc.Node","_name":"GameView","_objFlags":0,"__editorExtras__":{},"_parent":null,"_children":[],"_active":true,"_components":[{"__id__":2},{"__id__":4}],"_prefab":{"__id__":6},"_lpos":{"__type__":"cc.Vec3","x":0,"y":0,"z":0},"_lrot":{"__type__":"cc.Quat","x":0,"y":0,"z":0,"w":1},"_lscale":{"__type__":"cc.Vec3","x":1,"y":1,"z":1},"_mobility":0,"_layer":1073741824,"_euler":{"__type__":"cc.Vec3","x":0,"y":0,"z":0},"_id":""},{"__type__":"cc.UITransform","_name":"","_objFlags":0,"__editorExtras__":{},"_enabled":true,"_contentSize":{"__type__":"cc.Size","width":100,"height":100},"_anchorPoint":{"__type__":"cc.Vec2","x":0.5,"y":0.5},"_id":"","node":{"__id__":1},"__prefab":{"__id__":3}},{"__type__":"cc.CompPrefabInfo","fileId":"n6wZxOr+A9aaRQrZOYb5Ug"},{"__type__":"23849LV/B5MaZ0aFSsYHE5U","_name":"","_objFlags":0,"__editorExtras__":{},"_enabled":true,"_id":"","node":{"__id__":1},"__prefab":{"__id__":5}},{"__type__":"cc.CompPrefabInfo","fileId":"NarFvGXDjaW3QH94rXJYCA"},{"__type__":"cc.PrefabInfo","root":{"__id__":1},"asset":{"__id__":0},"fileId":"3sCWHMzNi1QEjQDI1+2/EA","instance":null,"targetOverrides":null,"nestedPrefabInstanceRoots":null}]
|