@ccgf/game-template 0.2.19 → 0.2.22

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.
Files changed (56) hide show
  1. package/assets/scenes/main.scene +14 -128
  2. package/assets/scripts/AppStart.ts +4 -1
  3. package/package.json +1 -1
  4. package/tables/README.md +5 -0
  5. package/assets/bundles/candy/scene/candy.scene +0 -449
  6. package/assets/bundles/candy/scene/candy.scene.meta +0 -11
  7. package/assets/bundles/candy/scene.meta +0 -9
  8. package/assets/bundles/candy/scripts/README.md +0 -8
  9. package/assets/bundles/candy/scripts/README.md.meta +0 -11
  10. package/assets/bundles/candy/scripts/candymain/CandyMainEvents.ts +0 -31
  11. package/assets/bundles/candy/scripts/candymain/CandyMainEvents.ts.meta +0 -9
  12. package/assets/bundles/candy/scripts/candymain/CandyMainModel.ts +0 -5
  13. package/assets/bundles/candy/scripts/candymain/CandyMainModel.ts.meta +0 -9
  14. package/assets/bundles/candy/scripts/candymain/CandyMainModule.ts +0 -27
  15. package/assets/bundles/candy/scripts/candymain/CandyMainModule.ts.meta +0 -9
  16. package/assets/bundles/candy/scripts/candymain/views/CandyMainView.ts +0 -22
  17. package/assets/bundles/candy/scripts/candymain/views/CandyMainView.ts.meta +0 -9
  18. package/assets/bundles/candy/scripts/candymain/views.meta +0 -9
  19. package/assets/bundles/candy/scripts/candymain.meta +0 -9
  20. package/assets/bundles/candy/scripts/table/TableTypes.ts +0 -25
  21. package/assets/bundles/candy/scripts/table/TableTypes.ts.meta +0 -9
  22. package/assets/bundles/candy/scripts/table.meta +0 -9
  23. package/assets/bundles/candy/scripts.meta +0 -9
  24. package/assets/bundles/candy/tables/Item.bin +0 -0
  25. package/assets/bundles/candy/tables/Item.bin.meta +0 -12
  26. package/assets/bundles/candy/tables.meta +0 -9
  27. package/assets/bundles/candy/views/README.md +0 -8
  28. package/assets/bundles/candy/views/README.md.meta +0 -11
  29. package/assets/bundles/candy/views/candymain/CandyMainView.prefab +0 -260
  30. package/assets/bundles/candy/views/candymain/CandyMainView.prefab.meta +0 -13
  31. package/assets/bundles/candy/views/candymain.meta +0 -9
  32. package/assets/bundles/candy/views.meta +0 -9
  33. package/assets/bundles/candy.meta +0 -14
  34. package/assets/bundles/dark_land/scripts/README.md +0 -8
  35. package/assets/bundles/dark_land/scripts/README.md.meta +0 -11
  36. package/assets/bundles/dark_land/scripts/table/TableTypes.ts +0 -19
  37. package/assets/bundles/dark_land/scripts/table/TableTypes.ts.meta +0 -9
  38. package/assets/bundles/dark_land/scripts/table.meta +0 -9
  39. package/assets/bundles/dark_land/scripts.meta +0 -9
  40. package/assets/bundles/dark_land/tables/Enemy.bin +0 -0
  41. package/assets/bundles/dark_land/tables/Enemy.bin.meta +0 -12
  42. package/assets/bundles/dark_land/tables.meta +0 -9
  43. package/assets/bundles/dark_land/views/README.md +0 -8
  44. package/assets/bundles/dark_land/views/README.md.meta +0 -11
  45. package/assets/bundles/dark_land/views.meta +0 -9
  46. package/assets/bundles/dark_land.meta +0 -14
  47. package/assets/bundles.meta +0 -9
  48. package/assets/resources/tables/Weapon.bin +0 -0
  49. package/assets/resources/tables/Weapon.bin.meta +0 -12
  50. package/assets/resources/tables.meta +0 -9
  51. package/assets/scripts/table/TableTypes.ts +0 -20
  52. package/assets/scripts/table/TableTypes.ts.meta +0 -9
  53. package/assets/scripts/table.meta +0 -9
  54. package/tables/bundles/candy/tables/Item_/351/201/223/345/205/267/350/241/250.csv +0 -11
  55. package/tables/bundles/dark_land/tables/Enemy_/346/200/252/347/211/251/350/241/250.csv +0 -4
  56. package/tables/resources/tables/Weapon_/346/255/246/345/231/250/350/241/250.csv +0 -4
@@ -23,7 +23,7 @@
23
23
  "_active": true,
24
24
  "_components": [],
25
25
  "_prefab": {
26
- "__id__": 16
26
+ "__id__": 8
27
27
  },
28
28
  "_lpos": {
29
29
  "__type__": "cc.Vec3",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "autoReleaseAssets": false,
56
56
  "_globals": {
57
- "__id__": 17
57
+ "__id__": 9
58
58
  },
59
59
  "_id": "405b1123-5280-4843-9cd5-f662ef6b4460"
60
60
  },
@@ -69,21 +69,18 @@
69
69
  "_children": [
70
70
  {
71
71
  "__id__": 3
72
- },
73
- {
74
- "__id__": 5
75
72
  }
76
73
  ],
77
74
  "_active": true,
78
75
  "_components": [
79
76
  {
80
- "__id__": 13
77
+ "__id__": 5
81
78
  },
82
79
  {
83
- "__id__": 14
80
+ "__id__": 6
84
81
  },
85
82
  {
86
- "__id__": 15
83
+ "__id__": 7
87
84
  }
88
85
  ],
89
86
  "_prefab": null,
@@ -207,117 +204,6 @@
207
204
  "_trackingType": 0,
208
205
  "_id": "63WIch3o5BEYRlXzTT0oWc"
209
206
  },
210
- {
211
- "__type__": "cc.Node",
212
- "_objFlags": 0,
213
- "_parent": {
214
- "__id__": 2
215
- },
216
- "_prefab": {
217
- "__id__": 6
218
- },
219
- "__editorExtras__": {}
220
- },
221
- {
222
- "__type__": "cc.PrefabInfo",
223
- "root": {
224
- "__id__": 5
225
- },
226
- "asset": {
227
- "__uuid__": "f2f9e936-1f37-430c-8f8b-a0df7fde6e3e",
228
- "__expectedType__": "cc.Prefab"
229
- },
230
- "fileId": "lLZC10USkJWWH0FmigHs1A",
231
- "instance": {
232
- "__id__": 7
233
- },
234
- "targetOverrides": null,
235
- "nestedPrefabInstanceRoots": null
236
- },
237
- {
238
- "__type__": "cc.PrefabInstance",
239
- "fileId": "1cLHD2adRJML2kIUti/V1A",
240
- "prefabRootNode": null,
241
- "mountedChildren": [],
242
- "mountedComponents": [],
243
- "propertyOverrides": [
244
- {
245
- "__id__": 8
246
- },
247
- {
248
- "__id__": 10
249
- },
250
- {
251
- "__id__": 11
252
- },
253
- {
254
- "__id__": 12
255
- }
256
- ],
257
- "removedComponents": []
258
- },
259
- {
260
- "__type__": "CCPropertyOverrideInfo",
261
- "targetInfo": {
262
- "__id__": 9
263
- },
264
- "propertyPath": [
265
- "_name"
266
- ],
267
- "value": "GameView"
268
- },
269
- {
270
- "__type__": "cc.TargetInfo",
271
- "localID": [
272
- "lLZC10USkJWWH0FmigHs1A"
273
- ]
274
- },
275
- {
276
- "__type__": "CCPropertyOverrideInfo",
277
- "targetInfo": {
278
- "__id__": 9
279
- },
280
- "propertyPath": [
281
- "_lpos"
282
- ],
283
- "value": {
284
- "__type__": "cc.Vec3",
285
- "x": 0,
286
- "y": 0,
287
- "z": 0
288
- }
289
- },
290
- {
291
- "__type__": "CCPropertyOverrideInfo",
292
- "targetInfo": {
293
- "__id__": 9
294
- },
295
- "propertyPath": [
296
- "_lrot"
297
- ],
298
- "value": {
299
- "__type__": "cc.Quat",
300
- "x": 0,
301
- "y": 0,
302
- "z": 0,
303
- "w": 1
304
- }
305
- },
306
- {
307
- "__type__": "CCPropertyOverrideInfo",
308
- "targetInfo": {
309
- "__id__": 9
310
- },
311
- "propertyPath": [
312
- "_euler"
313
- ],
314
- "value": {
315
- "__type__": "cc.Vec3",
316
- "x": 0,
317
- "y": 0,
318
- "z": 0
319
- }
320
- },
321
207
  {
322
208
  "__type__": "cc.UITransform",
323
209
  "_name": "",
@@ -402,28 +288,28 @@
402
288
  {
403
289
  "__type__": "cc.SceneGlobals",
404
290
  "ambient": {
405
- "__id__": 18
291
+ "__id__": 10
406
292
  },
407
293
  "shadows": {
408
- "__id__": 19
294
+ "__id__": 11
409
295
  },
410
296
  "_skybox": {
411
- "__id__": 20
297
+ "__id__": 12
412
298
  },
413
299
  "fog": {
414
- "__id__": 21
300
+ "__id__": 13
415
301
  },
416
302
  "octree": {
417
- "__id__": 22
303
+ "__id__": 14
418
304
  },
419
305
  "skin": {
420
- "__id__": 23
306
+ "__id__": 15
421
307
  },
422
308
  "lightProbeInfo": {
423
- "__id__": 24
309
+ "__id__": 16
424
310
  },
425
311
  "postSettings": {
426
- "__id__": 25
312
+ "__id__": 17
427
313
  },
428
314
  "bakedWithStationaryMainLight": false,
429
315
  "bakedWithHighpLightmap": false
@@ -575,4 +461,4 @@
575
461
  "__type__": "cc.PostSettingsInfo",
576
462
  "_toneMappingType": 0
577
463
  }
578
- ]
464
+ ]
@@ -1,5 +1,8 @@
1
1
  import { _decorator, Component, director, log } from 'cc';
2
- import { GameIns, Gm, ModuleManager, SubGame } from '@ccgf/framework';
2
+ import { GameIns } from '@ccgf/framework';
3
+ import { Gm } from '@ccgf/framework';
4
+ import { ModuleManager } from '@ccgf/framework';
5
+ import { SubGame } from '@ccgf/framework';
3
6
  import { DEBUG } from 'cc/env';
4
7
  const { ccclass, property } = _decorator;
5
8
 
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "dependencies": {
8
8
  "@ccgf/framework": "^0.1.12"
9
9
  },
10
- "version": "0.2.19",
10
+ "version": "0.2.22",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -0,0 +1,5 @@
1
+ # tables
2
+
3
+ 数据表 CSV 源目录(扩展的数据表工具会建表到这里)
4
+
5
+ 这个文件只是为了让目录能随 npm 包一起发布 —— npm 不打包空目录。
@@ -1,449 +0,0 @@
1
- [
2
- {
3
- "__type__": "cc.SceneAsset",
4
- "_name": "candy",
5
- "_objFlags": 0,
6
- "__editorExtras__": {},
7
- "_native": "",
8
- "scene": {
9
- "__id__": 1
10
- }
11
- },
12
- {
13
- "__type__": "cc.Scene",
14
- "_name": "candy",
15
- "_objFlags": 0,
16
- "__editorExtras__": {},
17
- "_parent": null,
18
- "_children": [
19
- {
20
- "__id__": 2
21
- }
22
- ],
23
- "_active": true,
24
- "_components": [],
25
- "_prefab": null,
26
- "_lpos": {
27
- "__type__": "cc.Vec3",
28
- "x": 0,
29
- "y": 0,
30
- "z": 0
31
- },
32
- "_lrot": {
33
- "__type__": "cc.Quat",
34
- "x": 0,
35
- "y": 0,
36
- "z": 0,
37
- "w": 1
38
- },
39
- "_lscale": {
40
- "__type__": "cc.Vec3",
41
- "x": 1,
42
- "y": 1,
43
- "z": 1
44
- },
45
- "_mobility": 0,
46
- "_layer": 1073741824,
47
- "_euler": {
48
- "__type__": "cc.Vec3",
49
- "x": 0,
50
- "y": 0,
51
- "z": 0
52
- },
53
- "autoReleaseAssets": false,
54
- "_globals": {
55
- "__id__": 8
56
- },
57
- "_id": "0f26f85b-ca9a-44c4-ba07-da725072f345"
58
- },
59
- {
60
- "__type__": "cc.Node",
61
- "_name": "Canvas",
62
- "_objFlags": 0,
63
- "__editorExtras__": {},
64
- "_parent": {
65
- "__id__": 1
66
- },
67
- "_children": [
68
- {
69
- "__id__": 3
70
- }
71
- ],
72
- "_active": true,
73
- "_components": [
74
- {
75
- "__id__": 5
76
- },
77
- {
78
- "__id__": 6
79
- },
80
- {
81
- "__id__": 7
82
- }
83
- ],
84
- "_prefab": null,
85
- "_lpos": {
86
- "__type__": "cc.Vec3",
87
- "x": 960,
88
- "y": 540,
89
- "z": 0
90
- },
91
- "_lrot": {
92
- "__type__": "cc.Quat",
93
- "x": 0,
94
- "y": 0,
95
- "z": 0,
96
- "w": 1
97
- },
98
- "_lscale": {
99
- "__type__": "cc.Vec3",
100
- "x": 1,
101
- "y": 1,
102
- "z": 1
103
- },
104
- "_mobility": 0,
105
- "_layer": 33554432,
106
- "_euler": {
107
- "__type__": "cc.Vec3",
108
- "x": 0,
109
- "y": 0,
110
- "z": 0
111
- },
112
- "_id": "beI88Z2HpFELqR4T5EMHpg"
113
- },
114
- {
115
- "__type__": "cc.Node",
116
- "_name": "Camera",
117
- "_objFlags": 0,
118
- "__editorExtras__": {},
119
- "_parent": {
120
- "__id__": 2
121
- },
122
- "_children": [],
123
- "_active": true,
124
- "_components": [
125
- {
126
- "__id__": 4
127
- }
128
- ],
129
- "_prefab": null,
130
- "_lpos": {
131
- "__type__": "cc.Vec3",
132
- "x": 0,
133
- "y": 0,
134
- "z": 1000
135
- },
136
- "_lrot": {
137
- "__type__": "cc.Quat",
138
- "x": 0,
139
- "y": 0,
140
- "z": 0,
141
- "w": 1
142
- },
143
- "_lscale": {
144
- "__type__": "cc.Vec3",
145
- "x": 1,
146
- "y": 1,
147
- "z": 1
148
- },
149
- "_mobility": 0,
150
- "_layer": 1073741824,
151
- "_euler": {
152
- "__type__": "cc.Vec3",
153
- "x": 0,
154
- "y": 0,
155
- "z": 0
156
- },
157
- "_id": "ebFwiq8gBFaYpqYbdoDODe"
158
- },
159
- {
160
- "__type__": "cc.Camera",
161
- "_name": "",
162
- "_objFlags": 0,
163
- "__editorExtras__": {},
164
- "node": {
165
- "__id__": 3
166
- },
167
- "_enabled": true,
168
- "__prefab": null,
169
- "_projection": 0,
170
- "_priority": 0,
171
- "_fov": 45,
172
- "_fovAxis": 0,
173
- "_orthoHeight": 645.0731707317074,
174
- "_near": 0,
175
- "_far": 2000,
176
- "_color": {
177
- "__type__": "cc.Color",
178
- "r": 0,
179
- "g": 0,
180
- "b": 0,
181
- "a": 255
182
- },
183
- "_depth": 1,
184
- "_stencil": 0,
185
- "_clearFlags": 7,
186
- "_rect": {
187
- "__type__": "cc.Rect",
188
- "x": 0,
189
- "y": 0,
190
- "width": 1,
191
- "height": 1
192
- },
193
- "_aperture": 19,
194
- "_shutter": 7,
195
- "_iso": 0,
196
- "_screenScale": 1,
197
- "_visibility": 1108344832,
198
- "_targetTexture": null,
199
- "_postProcess": null,
200
- "_usePostProcess": false,
201
- "_cameraType": -1,
202
- "_trackingType": 0,
203
- "_id": "63WIch3o5BEYRlXzTT0oWc"
204
- },
205
- {
206
- "__type__": "cc.UITransform",
207
- "_name": "",
208
- "_objFlags": 0,
209
- "__editorExtras__": {},
210
- "node": {
211
- "__id__": 2
212
- },
213
- "_enabled": true,
214
- "__prefab": null,
215
- "_contentSize": {
216
- "__type__": "cc.Size",
217
- "width": 1920,
218
- "height": 1080
219
- },
220
- "_anchorPoint": {
221
- "__type__": "cc.Vec2",
222
- "x": 0.5,
223
- "y": 0.5
224
- },
225
- "_id": "d6rUX5yfhMlKoWX2bSbawx"
226
- },
227
- {
228
- "__type__": "cc.Canvas",
229
- "_name": "",
230
- "_objFlags": 0,
231
- "__editorExtras__": {},
232
- "node": {
233
- "__id__": 2
234
- },
235
- "_enabled": true,
236
- "__prefab": null,
237
- "_cameraComponent": {
238
- "__id__": 4
239
- },
240
- "_alignCanvasWithScreen": true,
241
- "_id": "12O/ljcVlEqLmVm3U2gEOQ"
242
- },
243
- {
244
- "__type__": "cc.Widget",
245
- "_name": "",
246
- "_objFlags": 0,
247
- "__editorExtras__": {},
248
- "node": {
249
- "__id__": 2
250
- },
251
- "_enabled": true,
252
- "__prefab": null,
253
- "_alignFlags": 45,
254
- "_target": null,
255
- "_left": 0,
256
- "_right": 0,
257
- "_top": 5.684341886080802e-14,
258
- "_bottom": 5.684341886080802e-14,
259
- "_horizontalCenter": 0,
260
- "_verticalCenter": 0,
261
- "_isAbsLeft": true,
262
- "_isAbsRight": true,
263
- "_isAbsTop": true,
264
- "_isAbsBottom": true,
265
- "_isAbsHorizontalCenter": true,
266
- "_isAbsVerticalCenter": true,
267
- "_originalWidth": 0,
268
- "_originalHeight": 0,
269
- "_alignMode": 2,
270
- "_lockFlags": 0,
271
- "_id": "c5V1EV8IpMtrIvY1OE9t2u"
272
- },
273
- {
274
- "__type__": "cc.SceneGlobals",
275
- "ambient": {
276
- "__id__": 9
277
- },
278
- "shadows": {
279
- "__id__": 10
280
- },
281
- "_skybox": {
282
- "__id__": 11
283
- },
284
- "fog": {
285
- "__id__": 12
286
- },
287
- "octree": {
288
- "__id__": 13
289
- },
290
- "skin": {
291
- "__id__": 14
292
- },
293
- "lightProbeInfo": {
294
- "__id__": 15
295
- },
296
- "postSettings": {
297
- "__id__": 16
298
- },
299
- "bakedWithStationaryMainLight": false,
300
- "bakedWithHighpLightmap": false
301
- },
302
- {
303
- "__type__": "cc.AmbientInfo",
304
- "_skyColorHDR": {
305
- "__type__": "cc.Vec4",
306
- "x": 0,
307
- "y": 0,
308
- "z": 0,
309
- "w": 0.520833125
310
- },
311
- "_skyColor": {
312
- "__type__": "cc.Vec4",
313
- "x": 0,
314
- "y": 0,
315
- "z": 0,
316
- "w": 0.520833125
317
- },
318
- "_skyIllumHDR": 20000,
319
- "_skyIllum": 20000,
320
- "_groundAlbedoHDR": {
321
- "__type__": "cc.Vec4",
322
- "x": 0,
323
- "y": 0,
324
- "z": 0,
325
- "w": 0
326
- },
327
- "_groundAlbedo": {
328
- "__type__": "cc.Vec4",
329
- "x": 0,
330
- "y": 0,
331
- "z": 0,
332
- "w": 0
333
- },
334
- "_skyColorLDR": {
335
- "__type__": "cc.Vec4",
336
- "x": 0.2,
337
- "y": 0.5,
338
- "z": 0.8,
339
- "w": 1
340
- },
341
- "_skyIllumLDR": 20000,
342
- "_groundAlbedoLDR": {
343
- "__type__": "cc.Vec4",
344
- "x": 0.2,
345
- "y": 0.2,
346
- "z": 0.2,
347
- "w": 1
348
- }
349
- },
350
- {
351
- "__type__": "cc.ShadowsInfo",
352
- "_enabled": false,
353
- "_type": 0,
354
- "_normal": {
355
- "__type__": "cc.Vec3",
356
- "x": 0,
357
- "y": 1,
358
- "z": 0
359
- },
360
- "_distance": 0,
361
- "_planeBias": 1,
362
- "_shadowColor": {
363
- "__type__": "cc.Color",
364
- "r": 76,
365
- "g": 76,
366
- "b": 76,
367
- "a": 255
368
- },
369
- "_maxReceived": 4,
370
- "_size": {
371
- "__type__": "cc.Vec2",
372
- "x": 512,
373
- "y": 512
374
- }
375
- },
376
- {
377
- "__type__": "cc.SkyboxInfo",
378
- "_envLightingType": 0,
379
- "_envmapHDR": null,
380
- "_envmap": null,
381
- "_envmapLDR": null,
382
- "_diffuseMapHDR": null,
383
- "_diffuseMapLDR": null,
384
- "_enabled": false,
385
- "_useHDR": true,
386
- "_editableMaterial": null,
387
- "_reflectionHDR": null,
388
- "_reflectionLDR": null,
389
- "_rotationAngle": 0
390
- },
391
- {
392
- "__type__": "cc.FogInfo",
393
- "_type": 0,
394
- "_fogColor": {
395
- "__type__": "cc.Color",
396
- "r": 200,
397
- "g": 200,
398
- "b": 200,
399
- "a": 255
400
- },
401
- "_enabled": false,
402
- "_fogDensity": 0.3,
403
- "_fogStart": 0.5,
404
- "_fogEnd": 300,
405
- "_fogAtten": 5,
406
- "_fogTop": 1.5,
407
- "_fogRange": 1.2,
408
- "_accurate": false
409
- },
410
- {
411
- "__type__": "cc.OctreeInfo",
412
- "_enabled": false,
413
- "_minPos": {
414
- "__type__": "cc.Vec3",
415
- "x": -1024,
416
- "y": -1024,
417
- "z": -1024
418
- },
419
- "_maxPos": {
420
- "__type__": "cc.Vec3",
421
- "x": 1024,
422
- "y": 1024,
423
- "z": 1024
424
- },
425
- "_depth": 8
426
- },
427
- {
428
- "__type__": "cc.SkinInfo",
429
- "_enabled": false,
430
- "_blurRadius": 0.01,
431
- "_sssIntensity": 3
432
- },
433
- {
434
- "__type__": "cc.LightProbeInfo",
435
- "_giScale": 1,
436
- "_giSamples": 1024,
437
- "_bounces": 2,
438
- "_reduceRinging": 0,
439
- "_showProbe": true,
440
- "_showWireframe": true,
441
- "_showConvex": false,
442
- "_data": null,
443
- "_lightProbeSphereVolume": 1
444
- },
445
- {
446
- "__type__": "cc.PostSettingsInfo",
447
- "_toneMappingType": 0
448
- }
449
- ]
@@ -1,11 +0,0 @@
1
- {
2
- "ver": "1.1.50",
3
- "importer": "scene",
4
- "imported": true,
5
- "uuid": "0f26f85b-ca9a-44c4-ba07-da725072f345",
6
- "files": [
7
- ".json"
8
- ],
9
- "subMetas": {},
10
- "userData": {}
11
- }
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "1.2.0",
3
- "importer": "directory",
4
- "imported": true,
5
- "uuid": "93fe439a-f3c3-46f6-80fc-ade527ca8a67",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,8 +0,0 @@
1
- # candy/scripts
2
-
3
- 本子包的模块脚本放在这里:
4
-
5
- assets/bundles/candy/scripts/<模块名>/<前缀>Module.ts
6
-
7
- 这个文件只是占位(别删):资源的空目录不会被导入,放一个文件进来,
8
- scripts/ 才会出现在资源管理器里。