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