Revisioned BiomeRules asset. 更多...
#include <BiomeTarget.h>
Public 成员函数 | |
| BiomeDocumentTarget (std::string id) | |
| Biome document target. | |
| TargetId | targetId () const override |
| Target id. | |
| TargetDescriptor | describe () const override |
| Describe. | |
| void * | queryCapability (const CapabilityId &) override |
| Query Inspector property and snapshot capabilities. @ownership Borrowed from this target; callers must not delete the pointer. @lifetime Valid until this target is destroyed or replaced by commitDomainState. @thread Owner-thread only. | |
| Result< void > | applyDomainOperation (const DomainOperation &) override |
| Applies domain operation. | |
| std::unique_ptr< IDomainOperationTarget > | cloneDomainState () const override |
| Clones domain state. | |
| Result< void > | commitDomainState (std::unique_ptr< IDomainOperationTarget >) override |
| Commits domain state. | |
| eve::Result< eve::Revision > | currentRevision (const SelectionSnapshot &) const override |
| Current revision. | |
| PropertySchema | schema (const SelectionSnapshot &) const override |
| Schema. | |
| PropertyReadResult | read (const SelectionSnapshot &, const PropertyPath &) const override |
| Reads . | |
| Result< DomainOperation > | makeSet (const SelectionSnapshot &, const PropertyPath &, const EditorValue &, PropertySetMode) const override |
| Make set. | |
| Result< DomainOperation > | makeReset (const SelectionSnapshot &, const PropertyPath &) const override |
| Make reset. | |
| Result< DomainOperation > | makeCreateLayer (const BiomeLayerValue &) const |
| Make create layer. | |
| Result< DomainOperation > | makeDeleteLayer (const ObjectId &) const |
| Make delete layer. | |
| Result< DomainOperation > | makeCreateAsset (const ObjectId &layer, const BiomeAssetValue &) const |
| Make create asset. | |
| Result< DomainOperation > | makeDeleteAsset (const ObjectId &) const |
| Make delete asset. | |
| Result< DomainOperation > | makeSetExclusions (std::vector< std::string >) const |
| Make set exclusions. | |
| const std::vector< BiomeLayerValue > & | layers () const |
| Layers. | |
| const std::vector< std::string > & | exclusions () const |
| Exclusions. | |
| std::vector< EditorDiagnostic > | validate () const |
| Validate. | |
| EditorValue | snapshotValue () const override |
| Snapshot value. | |
| Result< void > | loadSnapshot (const EditorValue &) |
| Loads snapshot. | |
Public 成员函数 继承自 eve::editing::EditableTargetState | |
| EditableTargetState (Revision initial=1) | |
| Constructs the shared state with an explicit initial revision. | |
| EditRegion | dirtyRegion () const override |
| Return the accumulated dirty region. | |
| void | clearDirtyRegion () override |
| Discard the dirty region; the revision does not change. | |
| std::uint64_t | revision () const override |
| Return the current revision. | |
| Revision | revisionValue () const noexcept |
| Return the revision as the shared protocol revision type. | |
Public 成员函数 继承自 eve::editing::IEditableTarget | |
| virtual | ~IEditableTarget ()=default |
| Releases IEditableTarget resources. | |
| template<class C > | |
| eve::OptionalRef< C > | capability () |
| Query a capability through its interface-owned stable identity. | |
| template<class C > | |
| eve::OptionalRef< const C > | capability () const |
| Capability. | |
| template<class C > | |
| C * | query () |
| Queries query. | |
| template<class C > | |
| const C * | query () const |
| Queries query. | |
Public 成员函数 继承自 eve::editing::IDomainOperationTarget | |
| ~IDomainOperationTarget () override=default | |
| Releases IDomainOperationTarget resources. | |
Public 成员函数 继承自 eve::editing::IDomainOperationTargetStaging | |
| virtual | ~IDomainOperationTargetStaging ()=default |
| Releases IDomainOperationTargetStaging resources. | |
Public 成员函数 继承自 eve::editing::IPropertyProvider | |
| virtual | ~IPropertyProvider ()=default |
| Releases IPropertyProvider resources. | |
Public 成员函数 继承自 eve::editing::IEditingSnapshotProvider | |
| virtual | ~IEditingSnapshotProvider ()=default |
| Releases IEditingSnapshotProvider resources. | |
静态 Public 成员函数 | |
| static CapabilityId | propertyCapabilityId () |
| Capability identity published by describe() for Inspector property editing. | |
静态 Public 成员函数 继承自 eve::editing::IPropertyProvider | |
| static CapabilityId | editingCapabilityId () |
| Stable capability identity for generic property editing. | |
静态 Public 成员函数 继承自 eve::editing::IEditingSnapshotProvider | |
| static CapabilityId | editingCapabilityId () |
| Stable capability identity shared by every editable domain target. | |
额外继承的成员函数 | |
Protected 成员函数 继承自 eve::editing::EditableTargetState | |
| void | widenDirty (int x, int y) |
| Widen the dirty region without advancing the revision. | |
| void | widenDirty (const EditRegion ®ion) |
| Widen the dirty region without advancing the revision. | |
| void | widenDirty () |
| Mark an unknown area dirty without advancing the revision. | |
| void | bumpRevision () |
| Advance the revision without touching the dirty region. | |
| void | setRevision (Revision revision) |
| Adopt a revision observed elsewhere, without advancing it. | |
| void | setDirtyRegion (const EditRegion ®ion) |
| Replace the dirty region wholesale, without advancing the revision. | |
| void | markDirty (int x, int y) |
| Include one cell in the dirty region and advance the revision. | |
| void | markDirty (const EditRegion ®ion) |
| Include a whole region and advance the revision. | |
| void | markDirty () |
| Mark an unknown area dirty and advance the revision. | |
详细描述
Revisioned BiomeRules asset.
在文件 BiomeTarget.h 第 59 行定义.
构造及析构函数说明
◆ BiomeDocumentTarget()
|
explicit |
Biome document target.
在文件 BiomeTarget.cpp 第 97 行定义.
成员函数说明
◆ applyDomainOperation()
|
overridevirtual |
Applies domain operation.
实现了 eve::editing::IDomainOperationTarget.
在文件 BiomeTarget.cpp 第 352 行定义.
引用了 eve::editing::EditableTargetState::bumpRevision(), c, exclusions(), eve::editing::Value::isWithinLimits(), layers(), eve::editing::DomainOperation::payload, s, eve::editing::DomainOperation::target, eve::editing::DomainOperation::type, v , 以及 eve::editing::EditableTargetState::widenDirty().
被这些函数引用 loadSnapshot().
◆ cloneDomainState()
|
overridevirtual |
Clones domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 BiomeTarget.cpp 第 387 行定义.
◆ commitDomainState()
|
overridevirtual |
Commits domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 BiomeTarget.cpp 第 390 行定义.
◆ currentRevision()
|
overridevirtual |
Current revision.
重载 eve::editing::IPropertyProvider .
在文件 BiomeTarget.cpp 第 130 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::editing::EditableTargetState::revisionValue(), s , 以及 eve::Result< T >::success().
◆ describe()
|
overridevirtual |
◆ exclusions()
|
inline |
Exclusions.
在文件 BiomeTarget.h 第 114 行定义.
被这些函数引用 eve::biome_editor::BiomeRulesEditor::addExclusion(), applyDomainOperation(), eve::biome_editor::BiomeRulesEditor::exclusionAsset(), eve::biome_editing::BiomeDocumentRuntime::publish(), eve::biome_editor::BiomeRulesEditor::removeExclusion() , 以及 validate().
◆ layers()
|
inline |
Layers.
在文件 BiomeTarget.h 第 112 行定义.
被这些函数引用 applyDomainOperation(), eve::biome_editor::BiomeRulesEditor::deleteSelectedLayer(), eve::biome_editor::BiomeRulesEditor::layerDensity(), eve::biome_editor::BiomeRulesEditor::layerId(), eve::biome_editor::BiomeRulesEditor::layerName(), eve::biome_editor::BiomeRulesEditor::layerPriority(), eve::biome_editing::BiomeDocumentRuntime::publish(), eve::biome_editor::BiomeRulesEditor::selectAsset() , 以及 eve::biome_editor::BiomeRulesEditor::selectLayer().
◆ loadSnapshot()
| Result< void > eve::biome_editing::BiomeDocumentTarget::loadSnapshot | ( | const EditorValue & | s | ) |
◆ makeCreateAsset()
| Result< DomainOperation > eve::biome_editing::BiomeDocumentTarget::makeCreateAsset | ( | const ObjectId & | layer, |
| const BiomeAssetValue & | v | ||
| ) | const |
Make create asset.
在文件 BiomeTarget.cpp 第 275 行定义.
◆ makeCreateLayer()
| Result< DomainOperation > eve::biome_editing::BiomeDocumentTarget::makeCreateLayer | ( | const BiomeLayerValue & | v | ) | const |
Make create layer.
在文件 BiomeTarget.cpp 第 255 行定义.
◆ makeDeleteAsset()
| Result< DomainOperation > eve::biome_editing::BiomeDocumentTarget::makeDeleteAsset | ( | const ObjectId & | id | ) | const |
Make delete asset.
在文件 BiomeTarget.cpp 第 293 行定义.
被这些函数引用 eve::biome_editor::BiomeRulesEditor::deleteSelectedAsset().
◆ makeDeleteLayer()
| Result< DomainOperation > eve::biome_editing::BiomeDocumentTarget::makeDeleteLayer | ( | const ObjectId & | id | ) | const |
Make delete layer.
在文件 BiomeTarget.cpp 第 267 行定义.
被这些函数引用 eve::biome_editor::BiomeRulesEditor::deleteSelectedLayer().
◆ makeReset()
|
overridevirtual |
Make reset.
实现了 eve::editing::IPropertyProvider.
在文件 BiomeTarget.cpp 第 248 行定义.
引用了 d, eve::editing::PropertySchema::find(), makeSet(), p, s , 以及 schema().
被这些函数引用 makeSet().
◆ makeSet()
|
overridevirtual |
Make set.
实现了 eve::editing::IPropertyProvider.
在文件 BiomeTarget.cpp 第 209 行定义.
引用了 a, c, d, f, eve::editing::PropertySchema::find(), makeReset(), ok, p, s, schema(), v, value , 以及 x.
被这些函数引用 makeReset(), eve::biome_editor::BiomeRulesEditor::setAssetWeight(), eve::biome_editor::BiomeRulesEditor::setLayerDensity() , 以及 eve::biome_editor::BiomeRulesEditor::setLayerPriority().
◆ makeSetExclusions()
| Result< DomainOperation > eve::biome_editing::BiomeDocumentTarget::makeSetExclusions | ( | std::vector< std::string > | v | ) | const |
Make set exclusions.
在文件 BiomeTarget.cpp 第 306 行定义.
被这些函数引用 eve::biome_editor::BiomeRulesEditor::addExclusion() , 以及 eve::biome_editor::BiomeRulesEditor::removeExclusion().
◆ propertyCapabilityId()
|
inlinestatic |
Capability identity published by describe() for Inspector property editing.
Capability id.
在文件 BiomeTarget.h 第 69 行定义.
被这些函数引用 describe() , 以及 queryCapability().
◆ queryCapability()
|
overridevirtual |
Query Inspector property and snapshot capabilities. @ownership Borrowed from this target; callers must not delete the pointer. @lifetime Valid until this target is destroyed or replaced by commitDomainState. @thread Owner-thread only.
重载 eve::editing::IEditableTarget .
在文件 BiomeTarget.cpp 第 105 行定义.
引用了 c, eve::editing::IEditingSnapshotProvider::editingCapabilityId() , 以及 propertyCapabilityId().
◆ read()
|
overridevirtual |
◆ schema()
|
overridevirtual |
Schema.
实现了 eve::editing::IPropertyProvider.
在文件 BiomeTarget.cpp 第 136 行定义.
引用了 eve::editing::PropertySchema::properties, s, schema() , 以及 eve::editing::PropertySchema::typeId.
被这些函数引用 makeReset(), makeSet(), read() , 以及 schema().
◆ snapshotValue()
|
overridevirtual |
◆ targetId()
|
inlineoverridevirtual |
◆ validate()
| std::vector< EditorDiagnostic > eve::biome_editing::BiomeDocumentTarget::validate | ( | ) | const |
Validate.
在文件 BiomeTarget.cpp 第 314 行定义.
引用了 a, d, exclusions() , 以及 ids.
被这些函数引用 eve::biome_editing::BiomeDocumentRuntime::publish().
该类的文档由以下文件生成:
- src/modules/procgen/biome/editing/BiomeTarget.h
- src/modules/procgen/biome/editing/BiomeTarget.cpp
Public 成员函数 继承自