载入中...
搜索中...
未找到
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) |
| int | getGid (const std::string &palette, const std::string &semantic) const |
| int | getGid (const std::string &palette, uint32_t semanticId) const |
| bool | applyToLayer (const Grid2D &grid, const std::string &palette, map::TileLayer *layer, std::string *error) const |
详细描述
成员函数说明
◆ applyToLayer()
| bool eve::procgen::PaletteTable::applyToLayer | ( | const Grid2D & | grid, |
| const std::string & | palette, | ||
| map::TileLayer * | layer, | ||
| std::string * | error | ||
| ) | const |
在文件 Palette.cpp 第 24 行定义.
引用了 error, eve::procgen::Grid2D::getCell(), getGid(), eve::procgen::Grid2D::getHeight(), eve::procgen::Grid2D::getWidth(), h, layer, w, x , 以及 y.
◆ getGid() [1/2]
| int eve::procgen::PaletteTable::getGid | ( | const std::string & | palette, |
| const std::string & | semantic | ||
| ) | const |
在文件 Palette.cpp 第 13 行定义.
引用了 semantic.
被这些函数引用 applyToLayer(), getGid() , 以及 eve::procgen::Procgen::getPaletteGid().
◆ getGid() [2/2]
| int eve::procgen::PaletteTable::getGid | ( | const std::string & | palette, |
| uint32_t | semanticId | ||
| ) | const |
在文件 Palette.cpp 第 20 行定义.
引用了 getGid() , 以及 eve::procgen::semanticName().
◆ setGid()
| void eve::procgen::PaletteTable::setGid | ( | const std::string & | palette, |
| const std::string & | semantic, | ||
| int | gid | ||
| ) |
该类的文档由以下文件生成:
- src/modules/procgen/Palette.h
- src/modules/procgen/Palette.cpp