载入中...
搜索中...
未找到
PcgScreenshotSavedNotice.h
浏览该文件的文档.
1#pragma once
2
3#include <string>
4#include "common/Export.h"
5#include "common/Result.h"
6namespace ssq { class Table; }
7namespace eve::ui {
10public:
[[nodiscard]] Result<void> configure(bool enabled,float showSeconds); [[nodiscard]] Result<void> request(const std::string& savedPath); [[nodiscard]] Result<void> endFrame(float unscaledNow); [[nodiscard]] Result<void> tick(float unscaledNow); bool getVisible()const noexcept{return visible_;} bool getPathVisible()const noexcept{return visible_&&!path_.empty();} const std::string& getPath()const noexcept{return path_;} bool getPending()const noexcept{return pending_;}
19private:bool enabled_=true,visible_=false,pending_=false;float duration_=1.f,hideAt_=0.f;std::string path_;
20};
void exposePcgScreenshotSavedNoticeBindings(ssq::Table& table);
22}
#define EVENGINE_API_WORLD
Definition Export.h:109
const GltfImportRequest & request
Move-only, checked operation results for the common layer.
SimulationTick tick
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Caller-owned notification state ported from Pcg ScreenshotSavedManager.
void exposePcgScreenshotSavedNoticeBindings(ssq::Table &t)
Register Pcg screenshot-notice bindings.
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
bool enabled