行为树节点参数添加复合类型参数,更新demo

This commit is contained in:
gongxh
2025-09-18 22:51:27 +08:00
parent f60bf869a1
commit 50e29feeb8
7 changed files with 141 additions and 171 deletions

View File

@@ -11,7 +11,9 @@ export namespace BT {
int = "number",
float = "float",
string = "string",
bool = "boolean"
bool = "boolean",
object = "object",
array = "array"
}
/**
@@ -46,6 +48,12 @@ export namespace BT {
min?: number,
/** 最大值 */
max?: number,
/** 对象属性定义 - 仅当type为object时使用 */
properties?: { [key: string]: Omit<ParameterInfo, "name"> };
/** 数组元素类型 - 仅当type为array时使用 */
itemType?: ParamType;
/** 数组元素对象定义 - 仅当type为array且itemType为object时使用 */
itemProperties?: { [key: string]: Omit<ParameterInfo, "name"> };
}
/**