载入中...
搜索中...
未找到
PcgBuildConfig.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include <vector>
6#include "common/Export.h"
7#include "common/Result.h"
8namespace ssq { class Table; }
9namespace eve::scene {
18public:
[[nodiscard]] Result<void> setPublicationType(int type); int getPublicationType()const noexcept{return static_cast<int>(publicationType_);} [[nodiscard]] Result<void> addHistory(int category,const std::string&sceneName,int64_t timestamp); void clearHistory()noexcept{history_.clear();} uint64_t getHistoryCount()const noexcept{return history_.size();} [[nodiscard]] Result<int> getHistoryCategory(uint64_t index)const; [[nodiscard]] Result<std::string> getHistorySceneName(uint64_t index)const; [[nodiscard]] Result<int64_t> getHistoryTimestamp(uint64_t index)const;
27private: PcgPublicationType publicationType_=PcgPublicationType::RegularBuild; std::vector<PcgBuildLogEntry> history_;
28};
void exposePcgBuildConfigBindings(ssq::Table&table);
30}
#define EVENGINE_API_PLATFORM
Definition Export.h:107
Move-only, checked operation results for the common layer.
const char * category
uint32_t index
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Caller-owned Pcg publication configuration and ordered build history.
PcgBuildLogCategory
PcgBuildLogCategory public API.
PcgPublicationType
PcgPublicationType public API.
void exposePcgBuildConfigBindings(ssq::Table &t)
Register Pcg build-config 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
PcgBuildLogEntry public API.
PcgBuildLogCategory category