Add behavior list component

This commit is contained in:
2022-03-27 20:49:44 +08:00
parent 87023251a9
commit a36a10dade
10 changed files with 339 additions and 15 deletions
+9 -2
View File
@@ -155,7 +155,7 @@ class BehaviorInfo<E extends Record<EventType, any> = {}> extends Emitter<E> {
/**
* 行为描述
*/
public describe?: string = "";
public describe: string = "";
}
class BehaviorRecorder<
@@ -260,6 +260,11 @@ class Behavior<
*/
public id: string = "";
/**
* 颜色
*/
public color: string = "";
/**
* 优先级
* 值越大执行顺序越靠后
@@ -357,8 +362,10 @@ class Behavior<
}
type IRenderBehavior = BehaviorInfo | Behavior;
export {
Behavior, BehaviorRecorder, IBehaviorParameterOption, IBehaviorParameterOptionItem,
IAnyBehavior, IAnyBehaviorRecorder
IAnyBehavior, IAnyBehaviorRecorder, BehaviorInfo, IRenderBehavior
};
export default { Behavior };