载入中...
搜索中...
未找到
RoadTerrainPlan.h
浏览该文件的文档.
1#pragma once
2#include <cstddef>
3#include <memory>
4#include "common/Export.h"
5#include "common/Result.h"
6namespace eve::procgen {
7class TerrainWorldWorkspace;
8}
9namespace eve::procgen::road {
10class RoadNetwork;
11class RoadTerrainWorkspace;
12struct RoadBakeOptions;
13struct RoadTerrainPolicy;
20public:
26 RoadTerrainPlan& operator=(RoadTerrainPlan&&) noexcept;
28 RoadTerrainPlan& operator=(const RoadTerrainPlan&) = delete;
37 [[nodiscard]] static Result<RoadTerrainPlan> prepare(const RoadNetwork& network, const RoadBakeOptions& options,
38 const RoadTerrainPolicy& sharedPolicy,
39 std::size_t maximumPreparedElements);
46 [[nodiscard]] Result<int> apply(RoadTerrainWorkspace& workspace, std::size_t maximumWork) const;
53 [[nodiscard]] Result<int> applyWorld(TerrainWorldWorkspace& world, std::size_t maximumWork) const;
54
55private:
56 struct Impl;
57 explicit RoadTerrainPlan(std::unique_ptr<Impl> impl);
58 std::unique_ptr<Impl> impl_;
59};
60} // namespace eve::procgen::road
void * impl
#define EVENGINE_API_DOMAINS
Definition Export.h:110
Move-only, checked operation results for the common layer.
const SquirrelValueOptions & options
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Own a complete Pcg-style terrain grid and its height, splat, detail, tree, object and probe state....
Owning directed road graph with lane connectivity.
Definition RoadNetwork.h:19
Immutable owning per-source terrain write plan prepared from one authoritative network snapshot....
RoadTerrainPlan(RoadTerrainPlan &&) noexcept
Transfer the plan.
~RoadTerrainPlan()
Destroy the owned meshes and copied policies.
Single mutable owner of imported terrain tiles and their complete-channel history....
Options for baking a road network into mesh + navigation overlays.
Definition RoadBake.h:50
Owning per-road terrain author policy; copied with styles, presets and history. Owner-thread value wi...