refactor: flag 系统

This commit is contained in:
AncTe committed 2026-04-18 22:39:37 +08:00
1 parent ebfe59b4f5
commit ebae685a4e
15 files changed
+385 -21

No files matched your search

+2 -1
View File
@@ -833,7 +833,8 @@ interface Control {
* @param defaultValue 当变量不存在时的返回值,可选(事件流中默认填0)。
* @returns flags[name] ?? defaultValue
*/
getFlag<T>(name: string, defaultValue?: T): T;
getFlag<T>(name: string): T | undefined;
getFlag<T>(name: string, defaultValue: T): T;
/**
* @deprecated 可使用,暂时没有替代接口\