载入中...
搜索中...
未找到
Module-neutral grid topology and sizing (no building/map dependency). 更多...
类 | |
| struct | eve::grid::GridConfig |
| Grid shape, cell metrics, origin, and placement plane. Pure data; use GridProjection helpers for world/cell conversion. 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::grid |
枚举 | |
| enum class | eve::grid::GridLayout { eve::grid::Rectangle , eve::grid::Hexagon , eve::grid::Isometric , eve::grid::Staggered , eve::grid::IsometricZAsY } |
| Cell topology: rectangle, hex, isometric, or staggered variants. 更多... | |
| enum class | eve::grid::StaggerAxis { eve::grid::X , eve::grid::Y } |
| Axis used for odd/even row or column offset in staggered layouts. 更多... | |
| enum class | eve::grid::StaggerIndex { eve::grid::Odd , eve::grid::Even } |
| Whether odd or even indices along the stagger axis are offset. 更多... | |
| enum class | eve::grid::GridPlane { eve::grid::XY , eve::grid::XZ } |
| Placement plane for the second grid axis. XY maps the second axis to world Y (2D tilemaps / top-down). XZ maps the second axis to world Z with world Y as height (3D ground grids). 更多... | |
函数 | |
| float | eve::grid::cellPitchX (const GridConfig &cfg) |
| Effective cell pitch on X including gap. | |
| float | eve::grid::cellPitchY (const GridConfig &cfg) |
| Effective cell pitch on Y including gap. | |
详细描述
Module-neutral grid topology and sizing (no building/map dependency).
Layout, cell size/gap, origin, stagger, and plane axes live here. Coordinate conversion is in GridProjection.h as pure functions.
在文件 GridConfig.h 中定义.