@xiaoguomeiyitian/core 1.2.10 → 1.3.0
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/dist/lib_linux_20.jsc +0 -0
- package/dist/lib_linux_22.jsc +0 -0
- package/dist/lib_win32_20.jsc +0 -0
- package/dist/lib_win32_22.jsc +0 -0
- package/package.json +3 -3
- package/types/lib.d.ts +5 -2
package/dist/lib_linux_20.jsc
CHANGED
Binary file
|
package/dist/lib_linux_22.jsc
CHANGED
Binary file
|
package/dist/lib_win32_20.jsc
CHANGED
Binary file
|
package/dist/lib_win32_22.jsc
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xiaoguomeiyitian/core",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "types/lib.d.ts",
|
6
6
|
"bin": {
|
@@ -22,12 +22,12 @@
|
|
22
22
|
},
|
23
23
|
"bundleDependencies": [],
|
24
24
|
"devDependencies": {
|
25
|
-
"@types/node": "^22.
|
25
|
+
"@types/node": "^22.14.1",
|
26
26
|
"typescript": "^5.7.2"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
29
|
"@xiaoguomeiyitian/utils": "^0.1.2",
|
30
|
-
"bytenode": "^1.5.
|
30
|
+
"bytenode": "^1.5.7",
|
31
31
|
"classic-level": "^2.0.0",
|
32
32
|
"tsrpc": "^3.4.17"
|
33
33
|
}
|
package/types/lib.d.ts
CHANGED
@@ -72,18 +72,21 @@ export declare class Entity {
|
|
72
72
|
flush(): Promise<void>;
|
73
73
|
/**销毁 */
|
74
74
|
destroy(): Promise<void>;
|
75
|
-
/**添加定时器 */
|
75
|
+
/**添加定时器 time ms 毫秒 */
|
76
76
|
addOneLoop(funcName: Function, time: number): number;
|
77
77
|
/**清除定时器 */
|
78
78
|
clearOneLoop(timeId: number): void;
|
79
|
-
/**添加循环 */
|
79
|
+
/**添加循环 time ms 毫秒 */
|
80
80
|
addLoop(funcName: Function, time: number): number;
|
81
81
|
/**清除循环 */
|
82
82
|
clearLoop(timeId: number): void;
|
83
83
|
/**清除所有定时器 */
|
84
84
|
clearAllLoop(): void;
|
85
|
+
/** 当实体创建(热更新实体不会调用这个函数) */
|
85
86
|
onCreate(): void;
|
87
|
+
/** 当实体属性发生变化 */
|
86
88
|
onPropChange(prop: string, value: any): void;
|
89
|
+
/** 当实体销毁 */
|
87
90
|
onDestroy(): void;
|
88
91
|
}
|
89
92
|
export declare class GenEntityDefs {
|