Multi-provider extension point for domain-specific automation target creation. 更多...
#include <EditorAutomationTargetFactory.h>
Public 成员函数 | |
| virtual | ~IEditorAutomationTargetFactory ()=default |
| Releases IEditorAutomationTargetFactory resources. | |
| virtual std::vector< std::string_view > | types () const =0 |
| Stable target type names this factory accepts. | |
| bool | supports (std::string_view type) const |
| Whether this factory owns the requested stable target type. | |
| virtual Result< AutomationOwnedTarget > | create (const TargetId &target, std::string_view type, const EditorValue::Object &request)=0 |
| Create a domain target from an automation request. @ownership Success transfers the target and any supporting lifetime to the caller. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "IEditorAutomationTargetFactory" |
详细描述
Multi-provider extension point for domain-specific automation target creation.
在文件 EditorAutomationTargetFactory.h 第 22 行定义.
构造及析构函数说明
◆ ~IEditorAutomationTargetFactory()
|
virtualdefault |
Releases IEditorAutomationTargetFactory resources.
成员函数说明
◆ create()
|
pure virtual |
Create a domain target from an automation request. @ownership Success transfers the target and any supporting lifetime to the caller.
在 eve::audio_editor::AudioEditorModule::TargetFactory, eve::procgen_editor::ProcgenEditorModule::TargetFactory, eve::action_editor::ActionEditorModule::TargetFactory, eve::archspace_editor::ArchSpaceEditorModule::TargetFactory, eve::avatar_editor::AvatarEditorModule::TargetFactory, eve::fluids_editor::FluidsAutomationTargetFactory, eve::gpuagents_editor::GpuAgentsAutomationTargetFactory, eve::material_editor::MaterialEditorModule::TargetFactory, eve::biome_editor::BiomeEditorModule::TargetFactory, eve::scene_editor::SceneEditorModule::TargetFactory, eve::animation_editor::AnimationEditorModule::TargetFactory , 以及 eve::voxel_editor::VoxelEditorModule::TargetFactory 内被实现.
◆ supports()
|
inline |
Whether this factory owns the requested stable target type.
Finds .
在文件 EditorAutomationTargetFactory.h 第 42 行定义.
◆ types()
|
pure virtual |
Stable target type names this factory accepts.
Discovery is the reason this is a list rather than only a predicate: an agent could not previously learn which type values exist, so the built-in schema had to hard-code a subset that drifted from the loaded providers.
- 返回
- Values returned by value on purpose: a returned
std::initializer_listwould dangle, because its backing array has the lifetime of the returned object's full-expression.
在 eve::action_editor::ActionEditorModule::TargetFactory, eve::animation_editor::AnimationEditorModule::TargetFactory, eve::archspace_editor::ArchSpaceEditorModule::TargetFactory, eve::audio_editor::AudioEditorModule::TargetFactory, eve::avatar_editor::AvatarEditorModule::TargetFactory, eve::fluids_editor::FluidsAutomationTargetFactory, eve::gpuagents_editor::GpuAgentsAutomationTargetFactory, eve::material_editor::MaterialEditorModule::TargetFactory, eve::biome_editor::BiomeEditorModule::TargetFactory, eve::procgen_editor::ProcgenEditorModule::TargetFactory, eve::scene_editor::SceneEditorModule::TargetFactory , 以及 eve::voxel_editor::VoxelEditorModule::TargetFactory 内被实现.
被这些函数引用 supports().
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 EditorAutomationTargetFactory.h 第 24 行定义.
该类的文档由以下文件生成:
- src/modules/editor/EditorAutomationTargetFactory.h