Revisioned HD-2D sprite/tilemap presentation asset. 更多...
#include <Hd2dTarget.h>
Public 成员函数 | |
| Hd2dDocumentTarget (std::string id) | |
| Hd 2 d document target. | |
| TargetId | targetId () const override |
| Target id. | |
| TargetDescriptor | describe () const override |
| Describe. | |
| void * | queryCapability (const CapabilityId &) override |
| Query an optional stable editing capability. | |
| 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. | |
| const Hd2dAssetValue & | value () const |
| Value. | |
| std::vector< EditorDiagnostic > | validate () const |
| Validate. | |
| EditorValue | snapshotValue () const |
| 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::IPropertyProvider | |
| static CapabilityId | editingCapabilityId () |
| Stable capability identity for generic property editing. | |
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 HD-2D sprite/tilemap presentation asset.
在文件 Hd2dTarget.h 第 58 行定义.
构造及析构函数说明
◆ Hd2dDocumentTarget()
|
explicit |
Hd 2 d document target.
在文件 Hd2dTarget.cpp 第 45 行定义.
成员函数说明
◆ applyDomainOperation()
|
overridevirtual |
Applies domain operation.
实现了 eve::editing::IDomainOperationTarget.
在文件 Hd2dTarget.cpp 第 228 行定义.
引用了 eve::editing::EditableTargetState::bumpRevision(), c, eve::editing::Value::isWithinLimits(), kind, n, eve::editing::DomainOperation::payload, s, source, eve::editing::DomainOperation::target, eve::editing::DomainOperation::type, v, visible, eve::editing::EditableTargetState::widenDirty() , 以及 x.
被这些函数引用 loadSnapshot().
◆ cloneDomainState()
|
overridevirtual |
◆ commitDomainState()
|
overridevirtual |
Commits domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 Hd2dTarget.cpp 第 287 行定义.
◆ currentRevision()
|
overridevirtual |
Current revision.
重载 eve::editing::IPropertyProvider .
在文件 Hd2dTarget.cpp 第 55 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::editing::EditableTargetState::revisionValue(), s , 以及 eve::Result< T >::success().
◆ describe()
|
overridevirtual |
◆ loadSnapshot()
| Result< void > eve::hd2d_editing::Hd2dDocumentTarget::loadSnapshot | ( | const EditorValue & | s | ) |
Loads snapshot.
在文件 Hd2dTarget.cpp 第 298 行定义.
引用了 applyDomainOperation(), eve::editing::IEditableTarget::clearDirtyRegion(), eve::editing::DomainOperation::payload, s, eve::editing::DomainOperation::target, eve::editing::DomainOperation::type , 以及 v.
◆ makeReset()
|
overridevirtual |
Make reset.
实现了 eve::editing::IPropertyProvider.
在文件 Hd2dTarget.cpp 第 193 行定义.
引用了 d, eve::editing::PropertySchema::find(), makeSet(), p, s , 以及 schema().
被这些函数引用 makeSet().
◆ makeSet()
|
overridevirtual |
Make set.
实现了 eve::editing::IPropertyProvider.
在文件 Hd2dTarget.cpp 第 147 行定义.
引用了 a, eve::hd2d_editing::Hd2dAssetValue::animStart, c, eve::hd2d_editing::Hd2dAssetValue::columns, d, eve::editing::PropertySchema::find(), eve::hd2d_editing::Hd2dAssetValue::flipY, makeReset(), ok, p, s, schema(), eve::hd2d_editing::Hd2dAssetValue::sideDepth, eve::hd2d_editing::Hd2dAssetValue::size, eve::hd2d_editing::Hd2dAssetValue::sourceAsset, eve::hd2d_editing::Hd2dAssetValue::tint, v, value(), eve::hd2d_editing::Hd2dAssetValue::visible , 以及 eve::hd2d_editing::Hd2dAssetValue::wallUv.
被这些函数引用 makeReset().
◆ queryCapability()
|
overridevirtual |
Query an optional stable editing capability.
- 返回
- Borrowed pointer owned by this target, or null when unsupported. @lifetime Valid until this target is destroyed or the capability is explicitly invalidated.
重载 eve::editing::IEditableTarget .
在文件 Hd2dTarget.cpp 第 49 行定义.
引用了 c.
◆ read()
|
overridevirtual |
Reads .
实现了 eve::editing::IPropertyProvider.
在文件 Hd2dTarget.cpp 第 101 行定义.
引用了 eve::hd2d_editing::Hd2dAssetValue::flipX, eve::hd2d_editing::Hd2dAssetValue::flipY, eve::hd2d_editing::Hd2dAssetValue::fps, eve::hd2d_editing::Hd2dAssetValue::frame, eve::hd2d_editing::Hd2dAssetValue::heightScale, eve::hd2d_editing::Hd2dAssetValue::kind, p, s, schema(), eve::hd2d_editing::Hd2dAssetValue::sideDepth, eve::hd2d_editing::Hd2dAssetValue::sourceAsset, v, value() , 以及 eve::hd2d_editing::Hd2dAssetValue::visible.
◆ schema()
|
overridevirtual |
Schema.
实现了 eve::editing::IPropertyProvider.
在文件 Hd2dTarget.cpp 第 61 行定义.
引用了 s , 以及 eve::editing::PropertySchema::typeId.
被这些函数引用 makeReset(), makeSet() , 以及 read().
◆ snapshotValue()
| EditorValue eve::hd2d_editing::Hd2dDocumentTarget::snapshotValue | ( | ) | const |
Snapshot value.
在文件 Hd2dTarget.cpp 第 295 行定义.
◆ targetId()
|
inlineoverridevirtual |
◆ validate()
| std::vector< EditorDiagnostic > eve::hd2d_editing::Hd2dDocumentTarget::validate | ( | ) | const |
Validate.
在文件 Hd2dTarget.cpp 第 200 行定义.
引用了 d, eve::InvalidArgument, n, eve::PreconditionViolation, eve::hd2d_editing::Hd2dAssetValue::rows, eve::editing::ruleDiagnostic() , 以及 v.
◆ value()
|
inline |
该类的文档由以下文件生成:
- src/modules/hd2d/editing/Hd2dTarget.h
- src/modules/hd2d/editing/Hd2dTarget.cpp
Public 成员函数 继承自