载入中...
搜索中...
未找到
EditingProtocol.h
浏览该文件的文档.
1#pragma once
2#include <cstdint>
3#include <optional>
4#include <string>
5#include <vector>
10namespace eve::editing {
11using Revision = std::uint64_t;
18 std::uint64_t generation = 0;
20 ObjectRefValue() = default;
22 ObjectRefValue(TargetId targetId, ObjectId objectId, std::uint64_t objectGeneration = 0)
24 : target(std::move(targetId)), object(std::move(objectId)), generation(objectGeneration) {}
26 ObjectRefValue(TargetId targetId, std::string objectId, std::uint64_t objectGeneration = 0)
28 : target(std::move(targetId)), object(ObjectId(std::move(objectId))), generation(objectGeneration) {}
30 auto operator<=>(const ObjectRefValue&) const = default;
31};
45 std::string type;
46 std::string inverseType;
50 bool hasInverse = false;
51 std::vector<ObjectRefValue> affectedObjects;
52 std::vector<std::string> affectedProperties;
53 std::string mergeKey;
54};
121} // namespace eve::editing
std::uint32_t targetId
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Deterministic owning value tree shared by authoring hosts.
std::uint64_t Revision
ActionOrigin
ActionOrigin public API.
TransactionState
TransactionState public API.
CommandSource
Source that initiated an authoring command.
HostKind
HostKind public API.
AuthorityPlan public API.
std::vector< DomainOperation > operations
CommandPlan public API.
std::uint64_t commandGeneration
Command registration generation captured while planning.
std::vector< DomainOperation > operations
std::uint64_t targetGeneration
Target lifetime generation captured while planning.
CommandSource plannedSource
Invocation source authorized by this plan.
std::vector< Diagnostic > diagnostics
Value plannedPayload
Immutable payload authorized by this plan.
CommandRequest public API.
std::optional< Revision > expectedRevision
ContextSnapshot public API.
std::uint64_t targetGeneration
Monotonic lifetime generation of the bound target instance.
std::vector< std::string > inputContexts
std::vector< ObjectId > selection
DomainOperation public API.
std::vector< std::string > affectedProperties
std::vector< ObjectRefValue > affectedObjects
ObjectRefValue public API.
ObjectRefValue(TargetId targetId, std::string objectId, std::uint64_t objectGeneration=0)
Constructs a ObjectRefValue.
ObjectRefValue()=default
Constructs a ObjectRefValue.
auto operator<=>(const ObjectRefValue &) const =default
Operator <=>.
ObjectRefValue(TargetId targetId, ObjectId objectId, std::uint64_t objectGeneration=0)
Constructs a ObjectRefValue.
TransactionReceipt public API.
std::vector< ObjectRefValue > affectedObjects
std::vector< Diagnostic > diagnostics
TransactionSpec public API.