载入中...
搜索中...
未找到
eve::housegen::HouseComponent结构体 参考

房屋组件模板(几何 + 连接点 + 权重)。 更多...

#include <HouseGenTypes.h>

Public 属性

std::string id
 
std::string modelPath
 
std::string category
 
int width = 1
 占地尺寸(格)。
 
int depth = 1
 
int height = 1
 
int weight = 1
 生成权重(越大越常被选中)。
 
std::vector< int > rotations {0, 90, 180, 270}
 允许的旋转(度)。
 
std::vector< std::string > tags
 
std::vector< HouseSocketsockets
 连接点。
 
HouseMaterialOverride material
 材质覆盖。
 

详细描述

房屋组件模板(几何 + 连接点 + 权重)。

在文件 HouseGenTypes.h42 行定义.

类成员变量说明

◆ category

std::string eve::housegen::HouseComponent::category

在文件 HouseGenTypes.h45 行定义.

◆ depth

int eve::housegen::HouseComponent::depth = 1

在文件 HouseGenTypes.h48 行定义.

被这些函数引用 eve::housegen::HouseLayout::validate().

◆ height

int eve::housegen::HouseComponent::height = 1

在文件 HouseGenTypes.h49 行定义.

◆ id

std::string eve::housegen::HouseComponent::id

在文件 HouseGenTypes.h43 行定义.

◆ material

HouseMaterialOverride eve::housegen::HouseComponent::material

材质覆盖。

在文件 HouseGenTypes.h58 行定义.

◆ modelPath

std::string eve::housegen::HouseComponent::modelPath

在文件 HouseGenTypes.h44 行定义.

◆ rotations

std::vector<int> eve::housegen::HouseComponent::rotations {0, 90, 180, 270}

允许的旋转(度)。

在文件 HouseGenTypes.h53 行定义.

◆ sockets

std::vector<HouseSocket> eve::housegen::HouseComponent::sockets

连接点。

在文件 HouseGenTypes.h56 行定义.

◆ tags

std::vector<std::string> eve::housegen::HouseComponent::tags

在文件 HouseGenTypes.h54 行定义.

◆ weight

int eve::housegen::HouseComponent::weight = 1

生成权重(越大越常被选中)。

在文件 HouseGenTypes.h51 行定义.

◆ width

int eve::housegen::HouseComponent::width = 1

占地尺寸(格)。

在文件 HouseGenTypes.h47 行定义.


该结构体的文档由以下文件生成: