载入中...
搜索中...
未找到
LevelEditorModule.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Module.h"
6
7#include <memory>
8#include <string>
9
10namespace eve::editor {
11class EditorSession;
12}
13namespace eve::level_editing {
14class Brush;
15class EditorHistory;
16class TileBuffer;
17class TileBufferTarget;
18} // namespace eve::level_editing
19
20namespace eve::level_editor {
21
24public:
26
28 [[nodiscard]] std::unique_ptr<level_editing::TileBuffer> newTileBuffer(int width, int height) const;
30 [[nodiscard]] std::unique_ptr<level_editing::Brush> newBrush() const;
32 [[nodiscard]] std::unique_ptr<level_editing::EditorHistory> newHistory() const;
38 [[nodiscard]] std::unique_ptr<level_editing::TileBufferTarget> newTarget(std::string id,
42};
43
44} // namespace eve::level_editor
LogicalId target
#define EVENGINE_API_EDITORS
Definition Export.h:112
std::uint32_t height
std::uint32_t width
std::unique_ptr< gpgpu::GpuBuffer > buffer
Definition OnnxGpgpu.cpp:26
std::optional< InteractionSession > session
Definition Tactics.cpp:39
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Hosts interchangeable editor tools and routes their lifecycle/input.
Non-owning IIntFieldTarget adapter for TileBuffer.
Independent GID grid for map brushes (no hard dependency on map.TileLayer).
Definition TileBuffer.h:11
Script composition adapter for tile-oriented level authoring.