@xiaoguomeiyitian/core 1.0.7 → 1.0.8
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 +1 -1
- package/types/index.d.ts +25 -1
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
package/types/index.d.ts
CHANGED
@@ -1 +1,25 @@
|
|
1
|
-
export declare
|
1
|
+
export declare class Global {
|
2
|
+
constructor();
|
3
|
+
}
|
4
|
+
export declare class Entity {
|
5
|
+
type: string;/** 实体类型 */
|
6
|
+
id: string;/** 实体id */
|
7
|
+
constructor(type: string, id?: string);
|
8
|
+
}
|
9
|
+
export declare class RandomGenerator {
|
10
|
+
a: number;
|
11
|
+
c: number;
|
12
|
+
m: number;
|
13
|
+
seed: number; /** 随机种子 */
|
14
|
+
constructor(seed: number);
|
15
|
+
/** 快速幂算法计算 (a^n) % m */
|
16
|
+
fastPow(a: any, n: any, m: any): number;
|
17
|
+
/** 获取第n次的随机值 (0-1之间) */
|
18
|
+
getNthRandom(n: any): number;
|
19
|
+
/** 获取第n次的随机整数 [min, max] */
|
20
|
+
getNthRandomInt(n: any, min: any, max: any): number;
|
21
|
+
}
|
22
|
+
/** 拷贝文件或目录 */
|
23
|
+
export declare function copyDir(sourceDir: string, destDir: string): Promise<void>;
|
24
|
+
/** 删除文件或者目录 */
|
25
|
+
export declare function delFiles(dir: string, exts?: string[]): Promise<void>;
|