载入中...
搜索中...
未找到
PixelWorldEditorModule.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Module.h"
5
6#include <memory>
7
9
11class PixelWorldEditorModule final : public eve::Module {
12public:
14
16 ~PixelWorldEditorModule() override = default;
17
19 [[nodiscard]] eve::Result<void> openCatalog();
21 void closeCatalog();
23 bool isCatalogOpen() const;
24
25private:
26 std::unique_ptr<PixelWorldCatalogPanel> panel_;
27};
28
29} // namespace eve::pixelworld_editor
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Script-facing owner for the dedicated PixelWorld Catalog panel.
bool isCatalogOpen() const
Report whether the Catalog panel is currently visible.
~PixelWorldEditorModule() override=default
Destroy the panel before the module and its script VM are released.
void closeCatalog()
Hide the Catalog panel while preserving its draft.
eve::Result< void > openCatalog()
Open the built-in Catalog draft panel, creating it on first use.