载入中...
搜索中...
未找到
EditorEnvironmentBrowser.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7namespace eve::editor {
8
12 std::string logicalUri;
13 std::string previewArtifact;
14 std::string layout;
15 int width = 0;
16 int height = 0;
17 int faceCount = 0;
19 std::vector<EditorDiagnostic> diagnostics;
20};
21
24 std::vector<EnvironmentAssetCard> values;
25 std::size_t nextOffset = 0;
26 bool hasMore = false;
27 std::uint64_t generation = 0;
28};
29
32public:
34 explicit EnvironmentAssetBrowser(const MemoryAssetDatabase* database) : database_(database) {}
36 Result<EnvironmentAssetPage> query(std::string text, std::size_t offset,
37 std::size_t limit,
38 std::optional<std::uint64_t> generation = std::nullopt) const;
40 Result<EnvironmentAssetCard> select(const AssetGuid& asset) const;
41private:
42 Result<EnvironmentAssetCard> card(const AssetRecord& record) const;
43 const MemoryAssetDatabase* database_ = nullptr;
44};
45
46} // namespace eve::editor
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
std::string text
size_t offset
std::uint32_t generation
int limit
Definition TreeMesh.cpp:164
Move-only operation result carrying either a value or Status.
Definition Result.h:155
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Queries and validates cubemap/equirectangular assets from the shared AssetDB.
EnvironmentAssetBrowser(const MemoryAssetDatabase *database)
Environment asset browser.
Thread-neutral in-memory asset index used by editor hosts and tests.
AssetStatus
Current indexing/import health of an asset record.
Value snapshot stored by the editor asset index.
One environment-map asset card independent of a concrete browser UI.
std::vector< EditorDiagnostic > diagnostics
Generation-qualified environment asset browser page.
std::vector< EnvironmentAssetCard > values