#include <GridConfig.h>
静态 Public 成员函数 | |
| static const char * | layoutName (GridLayout l) |
| static GridLayout | layoutFromName (const std::string &name) |
| static const char * | planeName (GridPlane p) |
| static GridPlane | planeFromName (const std::string &name) |
Public 属性 | |
| GridLayout | layout = GridLayout::Rectangle |
| GridPlane | plane = GridPlane::XY |
| float | cellW = 32.f |
| float | cellH = 32.f |
| float | cellGapX = 0.f |
| float | cellGapY = 0.f |
| float | originX = 0.f |
| float | originY = 0.f |
| StaggerAxis | staggerAxis = StaggerAxis::Y |
| StaggerIndex | staggerIndex = StaggerIndex::Odd |
| float | hexSideLength = 0.f |
详细描述
网格配置:形状拓扑 + 尺寸 + 原点 + 平面轴。
在文件 GridConfig.h 第 23 行定义.
成员函数说明
◆ layoutFromName()
|
static |
在文件 GridConfig.cpp 第 21 行定义.
引用了 eve::grid::Hexagon, eve::grid::Isometric, eve::grid::IsometricZAsY, name, eve::grid::Rectangle , 以及 eve::grid::Staggered.
◆ layoutName()
|
static |
◆ planeFromName()
|
static |
在文件 GridConfig.cpp 第 33 行定义.
引用了 name, eve::grid::XY , 以及 eve::grid::XZ.
◆ planeName()
|
static |
在文件 GridConfig.cpp 第 29 行定义.
引用了 p , 以及 eve::grid::XZ.
类成员变量说明
◆ cellGapX
| float eve::grid::GridConfig::cellGapX = 0.f |
在文件 GridConfig.h 第 28 行定义.
被这些函数引用 eve::grid::cellPitchX() , 以及 eve::building::PlacementWorld::setCellGap().
◆ cellGapY
| float eve::grid::GridConfig::cellGapY = 0.f |
在文件 GridConfig.h 第 29 行定义.
被这些函数引用 eve::grid::cellPitchY() , 以及 eve::building::PlacementWorld::setCellGap().
◆ cellH
| float eve::grid::GridConfig::cellH = 32.f |
在文件 GridConfig.h 第 27 行定义.
被这些函数引用 eve::grid::cellPitchY(), eve::grid::cellToDepthY(), eve::buildingfx::BuildingFx::drawGrid2D(), eve::building::PlacementWorld::PlacementWorld(), eve::building::PlacementWorld::setCellSize(), eve::building::PlacementWorld::setGridFromLayer(), eve::buildingfx::BuildingFx::updateGhost() , 以及 eve::grid::worldToCell().
◆ cellW
| float eve::grid::GridConfig::cellW = 32.f |
在文件 GridConfig.h 第 26 行定义.
被这些函数引用 eve::grid::cellPitchX(), eve::buildingfx::BuildingFx::drawGrid2D(), eve::building::PlacementWorld::getCellSize(), eve::building::PlacementWorld::PlacementWorld(), eve::building::PlacementWorld::setCellSize(), eve::building::PlacementWorld::setGridFromLayer(), eve::buildingfx::BuildingFx::updateGhost() , 以及 eve::grid::worldToCell().
◆ hexSideLength
| float eve::grid::GridConfig::hexSideLength = 0.f |
◆ layout
| GridLayout eve::grid::GridConfig::layout = GridLayout::Rectangle |
◆ originX
| float eve::grid::GridConfig::originX = 0.f |
◆ originY
| float eve::grid::GridConfig::originY = 0.f |
◆ plane
| GridPlane eve::grid::GridConfig::plane = GridPlane::XY |
在文件 GridConfig.h 第 25 行定义.
被这些函数引用 eve::building::PlacementWorld::cellToWorld3D(), eve::building::PlacementSystem::ensureBuiltins(), eve::building::PlacementWorld::getBuildingWorldY(), eve::building::PlacementWorld::getBuildingWorldZ(), eve::building::PlacementWorld::getGridPlaneName(), eve::building::PlacementWorld::setGridPlane(), eve::building::PlacementSystem::snap3D() , 以及 eve::building::PlacementWorld::worldToCell3D().
◆ staggerAxis
| StaggerAxis eve::grid::GridConfig::staggerAxis = StaggerAxis::Y |
◆ staggerIndex
| StaggerIndex eve::grid::GridConfig::staggerIndex = StaggerIndex::Odd |
在文件 GridConfig.h 第 33 行定义.
被这些函数引用 eve::building::PlacementWorld::setGridFromLayer() , 以及 eve::building::PlacementWorld::setStagger().
该结构体的文档由以下文件生成:
- src/modules/grid/GridConfig.h
- src/modules/grid/GridConfig.cpp