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

详细描述

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

在文件 Palette.h 第 16 行定义.

成员函数说明

◆ 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 行定义.

引用了 palette , 以及 semantic.

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

◆ getGid() [2/2]

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

Returns the gid.

在文件 Palette.cpp 第 18 行定义.

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

◆ setGid()

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

Sets the gid.

在文件 Palette.cpp 第 7 行定义.

引用了 palette , 以及 semantic.

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


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