载入中...
搜索中...
未找到
Snapshot of one unit used to drive rendering. 更多...
#include <HexUnits.h>
Public 属性 | |
| std::int32_t | id = -1 |
| Stable unit id. | |
| HexCoordinates | location {} |
| Cell the unit occupies; for a travelling unit this is its destination. | |
| HexCoordinates | travelFrom {} |
Cell the unit is currently walking away from, or (0, 0) when idle. | |
| HexVec3 | position {} |
| Interpolated world position. | |
| float | orientation = 0.f |
| Interpolated facing angle in degrees. | |
| bool | traveling = false |
| Whether the unit is still moving along its path. | |
详细描述
Snapshot of one unit used to drive rendering.
在文件 HexUnits.h 第 40 行定义.
类成员变量说明
◆ id
| std::int32_t eve::hexmap::HexUnitSample::id = -1 |
Stable unit id.
在文件 HexUnits.h 第 42 行定义.
◆ location
| HexCoordinates eve::hexmap::HexUnitSample::location {} |
Cell the unit occupies; for a travelling unit this is its destination.
在文件 HexUnits.h 第 44 行定义.
◆ orientation
| float eve::hexmap::HexUnitSample::orientation = 0.f |
Interpolated facing angle in degrees.
在文件 HexUnits.h 第 50 行定义.
◆ position
| HexVec3 eve::hexmap::HexUnitSample::position {} |
Interpolated world position.
在文件 HexUnits.h 第 48 行定义.
◆ travelFrom
| HexCoordinates eve::hexmap::HexUnitSample::travelFrom {} |
Cell the unit is currently walking away from, or (0, 0) when idle.
在文件 HexUnits.h 第 46 行定义.
◆ traveling
| bool eve::hexmap::HexUnitSample::traveling = false |
Whether the unit is still moving along its path.
在文件 HexUnits.h 第 52 行定义.
该结构体的文档由以下文件生成:
- src/modules/hexmap/HexUnits.h