载入中...
搜索中...
未找到
eve::procgen::PaletteTable类 参考
Named palette: semantic name -> tile GID. Unmapped semantics become GID 0. 更多...
#include <Palette.h>
Public 成员函数 | |
| void | setGid (const std::string &palette, const std::string &semantic, int gid) |
| Sets the gid. | |
| int | getGid (const std::string &palette, const std::string &semantic) const |
| Returns the gid. | |
| int | getGid (const std::string &palette, uint32_t semanticId) const |
| Returns the gid. | |
| bool | applyToLayer (const Grid2D &grid, const std::string &palette, map::TileLayer *layer, std::string *error) const |
| Applies to layer. | |
详细描述
成员函数说明
◆ applyToLayer()
| bool eve::procgen::PaletteTable::applyToLayer | ( | const Grid2D & | grid, |
| const std::string & | palette, | ||
| map::TileLayer * | layer, | ||
| std::string * | error | ||
| ) | const |
Applies to layer.
在文件 PaletteMapAdapter.cpp 第 8 行定义.
引用了 error, getGid(), h, layer, palette, w, x , 以及 y.
被这些函数引用 eve::procgen::Procgen::applyToLayer() , 以及 eve::procgen::Procgen::generateTo().
◆ getGid() [1/2]
| int eve::procgen::PaletteTable::getGid | ( | const std::string & | palette, |
| const std::string & | semantic | ||
| ) | const |
Returns the gid.
在文件 Palette.cpp 第 11 行定义.
被这些函数引用 applyToLayer(), getGid() , 以及 eve::procgen::Procgen::getPaletteGid().
◆ getGid() [2/2]
| int eve::procgen::PaletteTable::getGid | ( | const std::string & | palette, |
| uint32_t | semanticId | ||
| ) | const |
◆ setGid()
| void eve::procgen::PaletteTable::setGid | ( | const std::string & | palette, |
| const std::string & | semantic, | ||
| int | gid | ||
| ) |
Sets the gid.
在文件 Palette.cpp 第 7 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/Palette.h
- src/modules/procgen/adapters/map/PaletteMapAdapter.cpp
- src/modules/procgen/Palette.cpp