载入中...
搜索中...
未找到
eve::housegen::HouseGenerator类 参考

布局生成器:把 HouseRequest 解析为 HouseLayout(组件库驱动)。 更多...

#include <HouseGenerator.h>

Public 成员函数

 HouseGenerator (const HouseComponentLibrary *library=nullptr)
 绑定可选组件库(生成时也可用 setLibrary)。
 
void setLibrary (const HouseComponentLibrary *library)
 更换组件库。
 
const HouseComponentLibrarylibrary () const
 当前组件库。
 
bool generate (const HouseRequest &request, HouseLayout &out, std::string *error=nullptr) const
 生成布局;失败返回 false 并写入 error。
 

详细描述

布局生成器:把 HouseRequest 解析为 HouseLayout(组件库驱动)。

在文件 HouseGenerator.h12 行定义.

构造及析构函数说明

◆ HouseGenerator()

eve::housegen::HouseGenerator::HouseGenerator ( const HouseComponentLibrary library = nullptr)
inlineexplicit

绑定可选组件库(生成时也可用 setLibrary)。

在文件 HouseGenerator.h15 行定义.

成员函数说明

◆ generate()

◆ library()

const HouseComponentLibrary * eve::housegen::HouseGenerator::library ( ) const
inline

当前组件库。

在文件 HouseGenerator.h19 行定义.

被这些函数引用 setLibrary().

◆ setLibrary()

void eve::housegen::HouseGenerator::setLibrary ( const HouseComponentLibrary library)
inline

更换组件库。

在文件 HouseGenerator.h17 行定义.

引用了 library().


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