载入中...
搜索中...
未找到
eve::procgen::Params类 参考

Generation parameters. Algorithm-specific keys live in values as strings (no overloads; typed setters/getters for script convenience). 更多...

#include <Params.h>

Public 成员函数

void setSeed (uint32_t seed)
 
uint32_t getSeed () const
 
void setSize (int width, int height)
 
int getWidth () const
 
int getHeight () const
 
void setInt (const std::string &key, int value)
 
void setFloat (const std::string &key, float value)
 
void setString (const std::string &key, const std::string &value)
 
bool has (const std::string &key) const
 
int getInt (const std::string &key, int defaultValue) const
 
float getFloat (const std::string &key, float defaultValue) const
 
std::string getString (const std::string &key, const std::string &defaultValue) const
 

详细描述

Generation parameters. Algorithm-specific keys live in values as strings (no overloads; typed setters/getters for script convenience).

在文件 Params.h13 行定义.

成员函数说明

◆ getFloat()

◆ getHeight()

◆ getInt()

◆ getSeed()

◆ getString()

std::string eve::procgen::Params::getString ( const std::string &  key,
const std::string &  defaultValue 
) const

◆ getWidth()

◆ has()

bool eve::procgen::Params::has ( const std::string &  key) const

在文件 Params.cpp21 行定义.

被这些函数引用 eve::procgen::TerrainSampler::fromParams() , 以及 eve::procgen::generateRockMesh().

◆ setFloat()

void eve::procgen::Params::setFloat ( const std::string &  key,
float  value 
)

在文件 Params.cpp18 行定义.

引用了 value.

◆ setInt()

void eve::procgen::Params::setInt ( const std::string &  key,
int  value 
)

在文件 Params.cpp17 行定义.

引用了 value.

◆ setSeed()

void eve::procgen::Params::setSeed ( uint32_t  seed)

在文件 Params.cpp7 行定义.

引用了 seed.

◆ setSize()

void eve::procgen::Params::setSize ( int  width,
int  height 
)

在文件 Params.cpp10 行定义.

引用了 height , 以及 width.

◆ setString()

void eve::procgen::Params::setString ( const std::string &  key,
const std::string &  value 
)

在文件 Params.cpp19 行定义.

引用了 value.


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