floating-live 0.15.0-beta.10 → 0.15.0-beta.11
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/module/command.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export declare class ModCommand {
|
|
|
11
11
|
unregister(name: string): void;
|
|
12
12
|
/** 调用命令 */
|
|
13
13
|
call<T extends keyof FloatingCommandMap>(name: T, ...args: Parameters<FloatingCommandMap[T]>): any;
|
|
14
|
+
/** 检测命令是否存在 */
|
|
15
|
+
has<T extends keyof FloatingCommandMap>(name: T): boolean;
|
|
14
16
|
/** 获取快照 */
|
|
15
17
|
getSnapshot(): string[];
|
|
16
18
|
}
|
package/dist/module/command.js
CHANGED
package/dist/types/message.d.ts
CHANGED
package/dist/types/room.d.ts
CHANGED
|
@@ -85,12 +85,14 @@ export interface PlatformInfo {
|
|
|
85
85
|
/** 统计信息 */
|
|
86
86
|
stats?: Record<string, string>;
|
|
87
87
|
/** 货币信息 */
|
|
88
|
-
currency?:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
currency?: {
|
|
89
|
+
[key: string | number]: {
|
|
90
|
+
/** 货币名称 */
|
|
91
|
+
name: string;
|
|
92
|
+
/** 1货币面值等值value (1面值/1数值) */
|
|
93
|
+
ratio: number;
|
|
94
|
+
/** 1单位消费金额等值value (1.00CNY/1数值) (若为0则为免费货币) */
|
|
95
|
+
money?: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
96
98
|
}
|