载入中...
搜索中...
未找到
RoadNetworkCodec.h
浏览该文件的文档.
1#pragma once
2#include "common/Value.h"
3#include "procgen/Params.h"
5namespace eve::procgen::road {
11[[nodiscard]] EVENGINE_API_DOMAINS Result<eve::Value> captureRoadNetwork(const RoadNetwork& network);
17[[nodiscard]] EVENGINE_API_DOMAINS Result<RoadNetwork> restoreRoadNetwork(const eve::Value& snapshot);
23[[nodiscard]] EVENGINE_API_DOMAINS Result<void> setRoadRecipeNetwork(Params& params, const RoadNetwork& network);
31[[nodiscard]] EVENGINE_API_DOMAINS Result<RoadNetwork> resolveRoadRecipeNetwork(const Params& params);
32} // namespace eve::procgen::road
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::vector< RecipeParam > params
Owning, renderer-independent dynamic values.
The canonical owning dynamic value used by data-facing protocols.
Definition Value.h:31
Result< eve::Value > captureRoadNetwork(const RoadNetwork &network)
Capture validated, owning author data using the editor-compatible roadNetwork schema v1....
Result< RoadNetwork > restoreRoadNetwork(const eve::Value &snapshot)
Decode schema v1 privately; unknown fields are ignored and unsupported versions rejected.
EVENGINE_API_DOMAINS Result< void > setRoadRecipeNetwork(Params &params, const RoadNetwork &network)
Store canonical validated author data in the standard recipe's networkSnapshot parameter....
EVENGINE_API_DOMAINS Result< RoadNetwork > resolveRoadRecipeNetwork(const Params &params)
Resolve the recipe's author snapshot, or its procedural scene when no snapshot was supplied.