2026-02-08 15:59:14 +08:00
|
|
|
/*
|
|
|
|
|
* This file is part of the kernelstudio package.
|
|
|
|
|
*
|
|
|
|
|
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
|
|
|
|
*
|
|
|
|
|
* For the full copyright and license information, please view the LICENSE file
|
|
|
|
|
* that was distributed with this source code.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-02-08 17:11:03 +08:00
|
|
|
import type { ApiDataResponse, NullableString, PageableResponse } from '@/types';
|
2026-03-15 16:36:07 +08:00
|
|
|
import type { GraphContainer } from '../graph';
|
2026-02-08 15:59:14 +08:00
|
|
|
|
2026-02-08 16:44:50 +08:00
|
|
|
export interface BehaviorTree {
|
|
|
|
|
id: number,
|
|
|
|
|
name: NullableString,
|
|
|
|
|
description: NullableString,
|
|
|
|
|
createdAt: NullableString,
|
|
|
|
|
updatedAt: NullableString,
|
|
|
|
|
englishName: NullableString,
|
|
|
|
|
xmlContent: NullableString,
|
2026-03-15 16:36:07 +08:00
|
|
|
graph: GraphContainer
|
2026-02-08 15:59:14 +08:00
|
|
|
}
|
|
|
|
|
|
2026-02-08 21:36:39 +08:00
|
|
|
export interface BehaviorTreeRequest extends BehaviorTree {
|
|
|
|
|
pageNum: number,
|
|
|
|
|
pageSize: number,
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-08 15:59:14 +08:00
|
|
|
|
2026-02-08 16:44:50 +08:00
|
|
|
export interface BehaviorTreeDetailsResponse extends ApiDataResponse<BehaviorTree> {
|
2026-02-08 15:59:14 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-08 16:44:50 +08:00
|
|
|
export interface BehaviorTreePageResponse extends PageableResponse<BehaviorTree> {
|
2026-02-08 15:59:14 +08:00
|
|
|
|
2026-02-08 16:44:50 +08:00
|
|
|
}
|