@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.
@@ -2,12 +2,12 @@
2
2
  "ver": "1.1.50",
3
3
  "importer": "prefab",
4
4
  "imported": true,
5
- "uuid": "98f4d435-117a-43ac-b6f6-395666ec5854",
5
+ "uuid": "da95b319-895b-4d3f-bb20-05c30101ffe3",
6
6
  "files": [
7
7
  ".json"
8
8
  ],
9
9
  "subMetas": {},
10
10
  "userData": {
11
- "syncNodeName": "GameView"
11
+ "syncNodeName": "GmView"
12
12
  }
13
13
  }
@@ -2,7 +2,7 @@
2
2
  "ver": "1.2.0",
3
3
  "importer": "directory",
4
4
  "imported": true,
5
- "uuid": "9593f7b4-1516-4fec-b59e-c1967869e091",
5
+ "uuid": "d16f9db6-4366-43b2-8413-36ca48c2f650",
6
6
  "files": [],
7
7
  "subMetas": {},
8
8
  "userData": {}
@@ -262,6 +262,7 @@
262
262
  },
263
263
  "_enabled": true,
264
264
  "__prefab": null,
265
+ "enableGm": true,
265
266
  "_id": "432J6Mg3lITrrrJtK2mv6N"
266
267
  },
267
268
  {
@@ -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",
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.4",
22
- "ccgf-game-tool": "^1.0.11"
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}]