@cc-component/cc-core 1.3.0 → 1.3.2

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "4.0.24",
3
+ "importer": "typescript",
4
+ "imported": true,
5
+ "uuid": "9261f456-8364-4163-9931-6c526c635402",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "4.0.23",
3
+ "importer": "typescript",
4
+ "imported": true,
5
+ "uuid": "70bdbf80-64ba-465d-baca-d19506dee907",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "1.2.0",
3
+ "importer": "directory",
4
+ "imported": true,
5
+ "uuid": "becc7741-24ad-4102-b41f-b4e76ec62918",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
package/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from './assets/core/home/ProgessWindow';
12
12
  export * from './assets/core/home/BaseModuleConfig';
13
13
 
14
14
  //日志
15
+ export * from './assets/core/lib/ecs/ECS';
15
16
  export * from './assets/core/lib/logger/ELoggerLevel';
16
17
 
17
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",
@@ -1,57 +0,0 @@
1
- import { _decorator, Component, Node, Size, UITransform, v2, Vec2 } from 'cc';
2
- const { ccclass, property } = _decorator;
3
-
4
-
5
- @ccclass('BaseBoxView')
6
- export class BaseBoxView extends Component {
7
- box_size: any = { width: 100, height: 100 };//获取碰撞盒大小
8
- box_node: Node;
9
- box_center: Node;
10
- box_node_ut: UITransform;
11
-
12
- ut: UITransform;
13
-
14
- protected onLoad(): void {
15
- this.ut = this.node.getComponent(UITransform);
16
- if (this.box_node) {
17
- this.box_node_ut = this.box_node.getComponent(UITransform);
18
- this.node.BoxView = this;
19
- }
20
- }
21
-
22
-
23
- UpdateBox(target: Node) {
24
- // const data = CommonModule.Get_MapCenter().map_view.GetMapModel(0, 0)
25
- // target = data.node;
26
- // if (this.box_node) {
27
- // this.box_node.scale = target.scale;
28
- // const targetUT = target.getComponent(UITransform);
29
- // this.box_node_ut.anchorPoint = v2(0.5, 0);
30
- // this.box_node_ut.contentSize = new Size(targetUT.contentSize.width, targetUT.contentSize.height);
31
- // this.box_size.width = this.box_node_ut.width;
32
- // this.box_size.height = this.box_node_ut.height;
33
- // }
34
- }
35
- // Collision(target_enemy: BoxView) {
36
- // const box1 = this.GetBox(this);
37
- // const box2 = this.GetBox(this.target_enemy);
38
-
39
- // const ok = App.Collision(box1, box2);
40
- // // Logger.debug("碰撞了吗?", ok, this.node.name)
41
- // return ok
42
- // }
43
-
44
- public GetBox() {
45
- const player = this;
46
- const node = this.box_node;
47
- const width = this.box_size.width;
48
- const height = this.box_size.height;
49
- const x = node.worldPosition.x - width * 0.5;
50
- const y = node.worldPosition.y - height * 0.5;
51
- return {
52
- x1: x, y1: y,
53
- x2: x + player.box_size.width, y2: y + player.box_size.height
54
- };
55
- }
56
- }
57
-
@@ -1,27 +0,0 @@
1
- import { _decorator, CCBoolean, Component, Node } from 'cc';
2
- import { BYTEDANCE } from 'cc/env';
3
- const { ccclass, property } = _decorator;
4
-
5
- @ccclass('DouYinShow')
6
- export class DouYinShow extends Component {
7
-
8
- @property({})
9
- isTip = false;
10
- protected onLoad(): void {
11
- if (BYTEDANCE) {
12
- if (!App.IsDouYin() && !this.isTip) {
13
- this.node.active = false;
14
- } else {
15
- }
16
- }
17
-
18
- }
19
- start() {
20
-
21
- }
22
-
23
- update(deltaTime: number) {
24
-
25
- }
26
- }
27
-