载入中...
搜索中...
未找到
OutputSpec.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include <string>
6
7namespace eve::map {
8class TileLayer;
9}
10
11namespace eve::procgen {
12
18public:
20 void setTarget(const std::string &target);
22 std::string getTarget() const;
23
25 void setLayer(map::TileLayer *layer);
27 map::TileLayer * getLayer() const;
28
30 void setPalette(const std::string &paletteName);
32 std::string getPalette() const;
33
35 void setPath(const std::string &path);
37 std::string getPath() const;
38
39private:
40 std::string target_ = "grid";
41 map::TileLayer *layer_ = nullptr;
42 std::string palette_ = "default";
43 std::string path_;
44};
45
46} // namespace eve::procgen
LogicalId target
#define EVENGINE_API_DOMAINS
Definition Export.h:110
TileLayer * layer
std::string path
Definition PlayHost.cpp:110
ECS tile layer entity. Script mutates tile GIDs / tileset / draw; TileRenderSystem batch-draws atlas ...
Definition TileLayer.h:32
Configurable generation sink. target: "grid" | "tilelayer" | "json"
Definition OutputSpec.h:17
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...