Files

10 lines
387 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 行为树节点的 JSON 序列化格式,仅 3 个字段,结构精简 */
export interface BTNodeJson {
/** 节点类型名,对应 registerFactory 注册的 key */
type: string;
/** 可选唯一标识,用于可视化高亮/定位 */
id?: string;
/** 子节点列表叶子节点无此字段Decorator 固定长度为 1 */
children?: BTNodeJson[];
}