载入中...
搜索中...
未找到
HexMapModule.h
浏览该文件的文档.
63 [[nodiscard]] Result<void> newGrid(graphics::Graphics* gfx, std::int32_t cellCountX, std::int32_t cellCountZ,
126 [[nodiscard]] Result<void> newSphere(graphics::Graphics* gfx, std::int32_t subdivision, float radius,
222 [[nodiscard]] Result<void> applySphereTerrain(graphics::Graphics* gfx, const HexTerrainBake& bake);
225 [[nodiscard]] std::int32_t meshSlot(std::int32_t chunkIndex, HexSurface surface) const noexcept;
Per-chunk mesh generation for every hex map surface.
Editable hex cell grid: topology, queries, picking and authoring.
Cell-graph search used by pathfinding and visibility.
Versioned payload codec for a hex map and its units.
Editable spherical hex map over an icosahedral hex topology.
Terrain bake hexmap applies; procgen produces the payload.
Units that occupy cells, travel along paths and carry vision.
Reference-counted cell visibility and explored state.
Move-only, checked operation results for the common layer.
Definition Graphics.h:125
Owns the active hex map and the GPU meshes generated from it.
Definition HexMapModule.h:43
~HexMapModule() override
Destructor; GPU meshes must already have been released.
Module_REG(HexMapModule)
HexMap & map() noexcept
The active map (mutable, for internal build steps).
Definition HexMapModule.h:106
graphics::Mesh * sphereWaterMesh() const noexcept
Borrowed GPU ocean mesh of the sphere, or null when nothing is flooded. @ownership Borrowed; the modu...
Definition HexMapModule.h:160
HexVisibility & visibility() noexcept
Fog-of-war counters of the active map.
Definition HexMapModule.h:163
HexMapModule()
Constructs an empty module with no map and no meshes.
HexSphereMap & sphere() noexcept
The active spherical map (mutable, for internal build steps).
Definition HexMapModule.h:148
graphics::Mesh * sphereTerrainMesh() const noexcept
Borrowed GPU terrain mesh of the sphere. @ownership Borrowed; the module retains ownership until rele...
Definition HexMapModule.h:154
HexSearchContext & scratch() noexcept
Search scratch sized to the active map.
Definition HexMapModule.h:167
Reusable search scratch: one record per cell plus a priority bucket queue.
Definition HexSearch.h:68
Owns the units of one map and their fog-of-war contribution.
Definition HexUnits.h:69
Fog-of-war bookkeeping: how many viewers currently see each cell.
Definition HexVisibility.h:32
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Definition HexCell.h:9
@ Graphics
Packed terrain produced by a generator and applied onto a hex map.
Definition HexTerrainBake.h:28