载入中...
搜索中...
未找到
eve::editor::HostProfile类 参考

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]

eve::editor::HostProfile::HostProfile ( )
default

Host profile.

◆ HostProfile() [2/2]

eve::editor::HostProfile::HostProfile ( HostKind  kind)
inlineexplicit

Host profile.

在文件 EditorHostProfile.h 第 56 行定义.

成员函数说明

◆ addFeatures()

void eve::editor::HostProfile::addFeatures ( HostFeature  features)
inline

Adds features.

在文件 EditorHostProfile.h 第 72 行定义.

◆ allowCommand()

void eve::editor::HostProfile::allowCommand ( CommandId  id)

◆ allowCommands()

void eve::editor::HostProfile::allowCommands ( std::initializer_list< CommandId >  ids)

Allow commands.

在文件 EditorHostProfile.cpp 第 36 行定义.

引用了 allowCommand() , 以及 ids.

◆ allowsAllCommands()

bool eve::editor::HostProfile::allowsAllCommands ( ) const
inline

Allows all commands.

在文件 EditorHostProfile.h 第 79 行定义.

◆ allowsCommand()

bool eve::editor::HostProfile::allowsCommand ( const CommandId &  id) const

Allows command.

在文件 EditorHostProfile.cpp 第 46 行定义.

被这些函数引用 eve::editor::EditorCommandService::commands().

◆ automation()

HostProfile eve::editor::HostProfile::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()

◆ features()

HostFeature eve::editor::HostProfile::features ( ) const
inline

Features.

在文件 EditorHostProfile.h 第 68 行定义.

◆ hasFeatures()

bool eve::editor::HostProfile::hasFeatures ( HostFeature  required) const

◆ kind()

HostKind eve::editor::HostProfile::kind ( ) const
inline

Kind.

在文件 EditorHostProfile.h 第 66 行定义.

被这些函数引用 eve::editor::EditorSession::contextSnapshot().

◆ maxPayloadBytes()

size_t eve::editor::HostProfile::maxPayloadBytes ( ) const
inline

Max payload bytes.

在文件 EditorHostProfile.h 第 90 行定义.

◆ runtimeBuilder()

HostProfile eve::editor::HostProfile::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()

void eve::editor::HostProfile::setAllowAllCommands ( bool  allow)
inline

Sets the allow all commands.

在文件 EditorHostProfile.h 第 77 行定义.

被这些函数引用 eve::editor::RuntimeEditorPublisher::publish().

◆ setFeatures()

void eve::editor::HostProfile::setFeatures ( HostFeature  features)
inline

Sets the features.

在文件 EditorHostProfile.h 第 70 行定义.

被这些函数引用 eve::editor::RuntimeEditorPublisher::publish().

◆ setMaxPayloadBytes()

void eve::editor::HostProfile::setMaxPayloadBytes ( size_t  bytes)
inline

Sets the max payload bytes.

在文件 EditorHostProfile.h 第 92 行定义.

引用了 bytes.

被这些函数引用 eve::editor::RuntimeEditorPublisher::publish().


该类的文档由以下文件生成: