Upper capability boundary for one editor host. 更多...
#include <EditorHostProfile.h>
Public 成员函数 | |
| HostProfile ()=default | |
| Host profile. | |
| HostProfile (HostKind kind) | |
| Host profile. | |
| HostKind | kind () const |
| Kind. | |
| HostFeature | features () const |
| Features. | |
| void | setFeatures (HostFeature features) |
| Sets the features. | |
| void | addFeatures (HostFeature features) |
| Adds features. | |
| bool | hasFeatures (HostFeature required) const |
| True when features. | |
| void | setAllowAllCommands (bool allow) |
| Sets the allow all commands. | |
| bool | allowsAllCommands () const |
| Allows all commands. | |
| void | allowCommand (CommandId id) |
| Allow command. | |
| void | allowCommands (std::initializer_list< CommandId > ids) |
| Allow commands. | |
| void | denyCommand (const CommandId &id) |
| Deny command. | |
| bool | allowsCommand (const CommandId &id) const |
| Allows command. | |
| size_t | maxPayloadBytes () const |
| Max payload bytes. | |
| void | setMaxPayloadBytes (size_t bytes) |
| Sets the max payload bytes. | |
静态 Public 成员函数 | |
| static HostProfile | developer () |
| Unrestricted developer profile used by legacy sessions. | |
| static HostProfile | runtimeBuilder () |
| Safe runtime profile that denies commands unless allow-listed. | |
| static HostProfile | automation () |
| Headless profile that denies commands unless allow-listed. | |
详细描述
Upper capability boundary for one editor host.
This profile gates discovery, execution and build exposure. It does not replace target constraints, gameplay policy or server-side authority.
在文件 EditorHostProfile.h 第 51 行定义.
构造及析构函数说明
◆ HostProfile() [1/2]
|
default |
Host profile.
◆ HostProfile() [2/2]
|
inlineexplicit |
Host profile.
在文件 EditorHostProfile.h 第 56 行定义.
成员函数说明
◆ addFeatures()
|
inline |
Adds features.
在文件 EditorHostProfile.h 第 72 行定义.
◆ allowCommand()
| void eve::editor::HostProfile::allowCommand | ( | CommandId | id | ) |
Allow command.
在文件 EditorHostProfile.cpp 第 30 行定义.
被这些函数引用 allowCommands(), eve::editor::EditorExtensionRegistry::configureProfile() , 以及 eve::editor::RuntimeEditorPublisher::publish().
◆ allowCommands()
| void eve::editor::HostProfile::allowCommands | ( | std::initializer_list< CommandId > | ids | ) |
◆ allowsAllCommands()
|
inline |
Allows all commands.
在文件 EditorHostProfile.h 第 79 行定义.
◆ allowsCommand()
| bool eve::editor::HostProfile::allowsCommand | ( | const CommandId & | id | ) | const |
Allows command.
在文件 EditorHostProfile.cpp 第 46 行定义.
◆ automation()
|
static |
Headless profile that denies commands unless allow-listed.
在文件 EditorHostProfile.cpp 第 21 行定义.
引用了 eve::editor::ProjectDocuments , 以及 eve::editor::RuntimeWorld.
◆ denyCommand()
| void eve::editor::HostProfile::denyCommand | ( | const CommandId & | id | ) |
Deny command.
在文件 EditorHostProfile.cpp 第 40 行定义.
◆ developer()
|
static |
Unrestricted developer profile used by legacy sessions.
在文件 EditorHostProfile.cpp 第 5 行定义.
引用了 eve::editor::ArbitraryScript, eve::editor::BuildCook, eve::editor::DebugOverride, eve::editor::MultiplayerSubmit, eve::editor::ProjectDocuments, eve::editor::RuntimeWorld, eve::editor::SourceAssets, eve::editor::SourceControl , 以及 eve::editor::UserCreations.
◆ features()
|
inline |
Features.
在文件 EditorHostProfile.h 第 68 行定义.
◆ hasFeatures()
| bool eve::editor::HostProfile::hasFeatures | ( | HostFeature | required | ) | const |
True when features.
在文件 EditorHostProfile.cpp 第 28 行定义.
引用了 required.
被这些函数引用 eve::editor::EditorCommandService::commands(), eve::editor::RuntimePropertyPresenter::editIntent(), eve::editor::RuntimePropertyPresenter::present() , 以及 eve::editor::RuntimeEditorPublisher::publish().
◆ kind()
|
inline |
◆ maxPayloadBytes()
|
inline |
Max payload bytes.
在文件 EditorHostProfile.h 第 90 行定义.
◆ runtimeBuilder()
|
static |
Safe runtime profile that denies commands unless allow-listed.
在文件 EditorHostProfile.cpp 第 15 行定义.
引用了 eve::editor::RuntimeWorld , 以及 eve::editor::UserCreations.
被这些函数引用 eve::editor::RuntimeEditorPublisher::publish() , 以及 eve::scene_editor::SceneEditorSession::restrictCommands().
◆ setAllowAllCommands()
|
inline |
Sets the allow all commands.
在文件 EditorHostProfile.h 第 77 行定义.
◆ setFeatures()
|
inline |
Sets the features.
在文件 EditorHostProfile.h 第 70 行定义.
◆ setMaxPayloadBytes()
|
inline |
该类的文档由以下文件生成:
- src/modules/editor/EditorHostProfile.h
- src/modules/editor/EditorHostProfile.cpp