载入中...
搜索中...
未找到
PcgPhotoModeApply.h
浏览该文件的文档.
1#pragma once
2#include "common/Result.h"
3#include <cstdint>
4#include <string>
5#include <variant>
6
7namespace eve {
9struct PhotoModeColor { float r=0, g=0, b=0, a=1; };
11using PhotoModeValue = std::variant<bool, std::int64_t, float, std::string, PhotoModeColor>;
35public:
36 static constexpr const char* capabilityName="eve.photo-mode.field";
38 virtual ~IPhotoModeFieldSink()=default;
40 virtual PhotoModeFieldAcceptance acceptsPhotoModeField(const PhotoModeAssignment& assignment) const noexcept=0;
42 [[nodiscard]] virtual Result<void> applyPhotoModeField(const PhotoModeAssignment& assignment)=0;
43};
46public:
47 static constexpr const char* capabilityName="eve.photo-mode.apply";
49 virtual ~IPhotoModeApplySink()=default;
51 [[nodiscard]] virtual Result<void> applyPhotoModeAssignment(const PhotoModeAssignment& assignment)=0;
52};
53}
Move-only, checked operation results for the common layer.
IPhotoModeApplySink public API.
virtual ~IPhotoModeApplySink()=default
Releases IPhotoModeApplySink resources.
virtual Result< void > applyPhotoModeAssignment(const PhotoModeAssignment &assignment)=0
Apply one atomic assignment to its authoritative domain.
static constexpr const char * capabilityName
IPhotoModeFieldSink public API.
virtual Result< void > applyPhotoModeField(const PhotoModeAssignment &assignment)=0
Apply one accepted assignment atomically on the game thread.
static constexpr const char * capabilityName
virtual PhotoModeFieldAcceptance acceptsPhotoModeField(const PhotoModeAssignment &assignment) const noexcept=0
Return true only for fields owned by this provider.
virtual ~IPhotoModeFieldSink()=default
Releases IPhotoModeFieldSink resources.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
std::variant< bool, std::int64_t, float, std::string, PhotoModeColor > PhotoModeValue
Typed payload accepted by authoritative photo-mode domain owners.
PhotoModeFieldAcceptance
Capability implemented by the composition root that routes assignments to domain owners.
PhotoModeDomain
Authoritative owner selected for a Pcg photo-mode field.
One reversible field assignment in a photo-mode transaction.
RGBA payload used by the cross-module photo-mode application contract.