载入中...
搜索中...
未找到
PcgPhotoModeSession.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include "common/Export.h"
6#include "common/Result.h"
8namespace ssq { class Table; }
9namespace eve::ui {
14public:
16 [[nodiscard]] Result<void> begin(const std::string&capturedJson,const std::string&savedJson,bool loadSaved,bool savedEver,int currentPipeline,int savedPipeline,const std::string&sceneName,int lightingProfile);
[[nodiscard]] Result<void> replaceWorkingJson(const std::string&json); [[nodiscard]] Result<void> end(bool resetOnDisable,bool applicationPlaying); [[nodiscard]] Result<std::string> workingJson()const; [[nodiscard]] Result<std::string> outputJson()const;
22 bool getActive()const noexcept{return active_;} bool getRestoreRequested()const noexcept{return restoreRequested_;}
24 bool getRemovePhotoCameraRequested()const noexcept{return removePhotoCameraRequested_;}
26 bool getUnfreezePlayerRequested()const noexcept{return unfreezePlayerRequested_;}
28 int getLoadDecision()const noexcept{return static_cast<int>(loadDecision_);} uint64_t getRevision()const noexcept{return revision_;}
29private: PcgPhotoModeValues captured_,working_,output_;bool active_=false,restoreRequested_=false,removePhotoCameraRequested_=false,unfreezePlayerRequested_=false;PcgPhotoModeLoadDecision loadDecision_=PcgPhotoModeLoadDecision::Current;uint64_t revision_=0;
30};
void exposePcgPhotoModeSessionBindings(ssq::Table&table);
32}
#define EVENGINE_API_WORLD
Definition Export.h:109
float begin
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Transactional lifecycle state for Pcg PhotoMode setup, disable and destroy.
bool getActive() const noexcept
Returns the active.
bool getRemovePhotoCameraRequested() const noexcept
Returns the remove photo camera requested.
int getLoadDecision() const noexcept
Returns the load decision.
bool getUnfreezePlayerRequested() const noexcept
Returns the unfreeze player requested.
void exposePcgPhotoModeSessionBindings(ssq::Table &table)
Register Pcg photo-mode session bindings.
PcgPhotoModeLoadDecision
PcgPhotoModeLoadDecision public API.
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