载入中...
搜索中...
未找到
ActionTimelinePayloadEditor.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
10#include "common/BorrowedRef.h"
11
12namespace eve::editor {
13
21public:
25 : editor_(editor), registry_(registry) {}
26
28 [[nodiscard]] Result<Value::Object> payload(const LogicalId& itemId) const;
29
36 [[nodiscard]] Result<void> patch(const LogicalId& itemId, Value::Object fields);
37
43 [[nodiscard]] Result<void> fitBlockToClip(const LogicalId& itemId);
44
50 [[nodiscard]] Result<void> fitClipToBlock(const LogicalId& itemId);
51
58 [[nodiscard]] Result<void> fitClipToNaturalDuration(
60
61private:
62 ActionTimelineEditor& editor_;
63 const action::ActionNotifyRegistry& registry_;
64};
65
66} // namespace eve::editor
Extensible notify descriptors, validation and runtime routing.
UI-neutral transactional action timeline editor and preview model.
Value::Object payload
LogicalId itemId
Optional VFX resource-duration query for action editors.
Vocabulary aliases for nullable and checked borrowed references.
#define EVENGINE_API_EDITORS
Definition Export.h:112
std::vector< std::string > fields
Definition PlayHost.cpp:111
Human-readable, scoped identifier in the form namespace:name.
Definition Identity.h:411
Move-only operation result carrying either a value or Status.
Definition Result.h:155
std::map< std::string, Value > Object
Definition Value.h:34
Canonical notify descriptor owner and runtime handler router.
Timeline editing controller shared by developer and in-game editors.
Applies typed partial payload changes through the canonical timeline transaction authority.
ActionTimelinePayloadEditor(ActionTimelineEditor &editor, const action::ActionNotifyRegistry &registry)
Construct a transient payload editor over borrowed authoritative services.
std::optional< std::reference_wrapper< T > > OptionalRef
Optional borrowed reference; it does not extend T's lifetime.
Definition BorrowedRef.h:24