载入中...
搜索中...
未找到
PcgPhotoModeApplyPlan.h
浏览该文件的文档.
1#pragma once
2
3#include <vector>
4#include "common/Export.h"
7namespace ssq { class Table; }
8namespace eve::ui {
11public:
13 [[nodiscard]] Result<void> compile(const PcgPhotoModeValues& before,const PcgPhotoModeValues& after);
15 [[nodiscard]] Result<void> compileJson(const std::string& beforeJson,const std::string& afterJson);
17 [[nodiscard]] Result<void> execute(IPhotoModeApplySink& sink);
19 [[nodiscard]] Result<void> executeRegistered();
uint64_t getCommandCount()const noexcept{return commands_.size();} [[nodiscard]] Result<std::string> getCommandField(uint64_t index)const; [[nodiscard]] Result<int> getCommandDomain(uint64_t index)const; uint64_t getAppliedCount()const noexcept{return appliedCount_;} bool getRollbackComplete()const noexcept{return rollbackComplete_;} uint64_t getRevision()const noexcept{return revision_;}
26private:
27 struct Command { std::string field; PhotoModeDomain domain; PhotoModeValue before; PhotoModeValue after; };
28 std::vector<Command> commands_; uint64_t appliedCount_=0,revision_=0; bool rollbackComplete_=true;
29};
void exposePcgPhotoModeApplyPlanBindings(ssq::Table& table);
31}
#define EVENGINE_API_WORLD
Definition Export.h:109
uint32_t index
IPhotoModeApplySink public API.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Stable, reversible difference between two complete Pcg photo-mode snapshots.
Complete typed value set from Pcg PhotoModeProfile with exact defaults.
void exposePcgPhotoModeApplyPlanBindings(ssq::Table &t)
Register Pcg photo-mode application-plan bindings.
std::variant< bool, std::int64_t, float, std::string, PhotoModeColor > PhotoModeValue
Typed payload accepted by authoritative photo-mode domain owners.
PhotoModeDomain
Authoritative owner selected for a Pcg photo-mode field.
enum EVENGINE_API_FOUNDATION Table
OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).
Definition Runtime.h:121
EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
Definition ECS.h:14