载入中...
搜索中...
未找到
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
 

详细描述

Named palette: semantic name -> tile GID. Unmapped semantics become GID 0.

在文件 Palette.h16 行定义.

成员函数说明

◆ applyToLayer()

bool eve::procgen::PaletteTable::applyToLayer ( const Grid2D grid,
const std::string &  palette,
map::TileLayer layer,
std::string *  error 
) const

◆ getGid() [1/2]

int eve::procgen::PaletteTable::getGid ( const std::string &  palette,
const std::string &  semantic 
) const

在文件 Palette.cpp13 行定义.

引用了 semantic.

被这些函数引用 applyToLayer(), getGid() , 以及 eve::procgen::Procgen::getPaletteGid().

◆ getGid() [2/2]

int eve::procgen::PaletteTable::getGid ( const std::string &  palette,
uint32_t  semanticId 
) const

在文件 Palette.cpp20 行定义.

引用了 getGid() , 以及 eve::procgen::semanticName().

◆ setGid()

void eve::procgen::PaletteTable::setGid ( const std::string &  palette,
const std::string &  semantic,
int  gid 
)

在文件 Palette.cpp9 行定义.

引用了 semantic.

被这些函数引用 eve::procgen::Procgen::setPaletteGid().


该类的文档由以下文件生成: