You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.0 KiB
TypeScript
54 lines
1.0 KiB
TypeScript
import { TreeGraphData } from "@antv/g6/lib/types";
|
|
|
|
export interface ArgsOptional{
|
|
name:string;
|
|
value:string|number;
|
|
}
|
|
|
|
export interface ArgsDefType {
|
|
name: string;
|
|
type: string;
|
|
desc: string;
|
|
default: string;
|
|
options: ArgsOptional[];
|
|
}
|
|
export interface BehaviorNodeTypeModel {
|
|
name: string;
|
|
type?: string;
|
|
desc?: string;
|
|
args?: ArgsDefType[];
|
|
input?: string[];
|
|
output?: string[];
|
|
doc?: string;
|
|
}
|
|
|
|
export interface BehaviorNodeModel {
|
|
id: number;
|
|
name: string;
|
|
desc?: string;
|
|
args?: { [key: string]: any };
|
|
input?: string[];
|
|
output?: string[];
|
|
children?: BehaviorNodeModel[];
|
|
debug?: boolean;
|
|
}
|
|
|
|
export interface BehaviorTreeModel {
|
|
name: string;
|
|
desc?: string;
|
|
root: BehaviorNodeModel;
|
|
}
|
|
|
|
export interface GraphNodeModel extends TreeGraphData {
|
|
name: string;
|
|
desc?: string;
|
|
args?: { [key: string]: any };
|
|
input?: string[];
|
|
output?: string[];
|
|
children?: GraphNodeModel[];
|
|
conf: BehaviorNodeTypeModel;
|
|
debug?: boolean;
|
|
|
|
size?: number[];
|
|
}
|