载入中...
搜索中...
未找到
ProcgenOwnership.h
浏览该文件的文档.
1#pragma once
2
3#include "procgen/Procgen.h"
4
5#include "procgen/Biome.h"
7#include "procgen/Grid2D.h"
8#include "procgen/GridGraph.h"
9#include "procgen/MeshBuild.h"
10#include "procgen/MeshGraph.h"
11#include "procgen/OutputSpec.h"
12#include "procgen/Palette.h"
13#include "procgen/Params.h"
14#include "procgen/PointGraph.h"
15#include "procgen/PointSet.h"
19#include "procgen/SpatialData.h"
30
32#include "image/ImageData.h"
33
34#include <cstdint>
35#include <string>
36#include <unordered_map>
37#include <vector>
38
39namespace eve::procgen {
40
53
71
73 std::unordered_map<std::string, ProcgenSystemSnapshot> systems;
74 std::unordered_map<std::string, ProcgenSystemSnapshot> previousSystems;
76 std::uint64_t nextArtifactSequence = 1;
78 mutable std::string compatMessage;
79 mutable std::vector<std::string> algorithmIdsCache;
80 mutable std::vector<std::string> textureRecipeIdsCache;
81 mutable std::vector<std::string> pbrRecipeIdsCache;
82 mutable std::vector<std::string> meshRecipeIdsCache;
83};
84
85} // namespace eve::procgen
Owning, backend-neutral products published by procedural generation.
Tag-free slot registry: handles, borrows, unique ownership and keep-alive pins.
In-memory owner and publisher for generated artifacts.
Named palette: semantic name -> tile GID. Unmapped semantics become GID 0.
Definition Palette.h:16
Slot/generation registry whose objects are exclusively unique-owned.
Module-owned registries and mutable caches behind the Procgen facade.
eve::script::RuntimeObjectRegistry< BiomeRules, ProcgenBiomeRulesHandleTag > biomeRules
std::unordered_map< std::string, ProcgenSystemSnapshot > systems
eve::script::RuntimeObjectRegistry< MeshBuild, ProcgenMeshBuildHandleTag > meshes
eve::script::RuntimeObjectRegistry< image::ImageData, ProcgenImageHandleTag > images
std::vector< std::string > pbrRecipeIdsCache
std::vector< std::string > algorithmIdsCache
eve::script::RuntimeObjectRegistry< LSystem, ProcgenLSystemHandleTag > lsystems
eve::script::RuntimeObjectRegistry< TerrainSampler, ProcgenTerrainSamplerHandleTag > samplers
eve::script::RuntimeObjectRegistry< RuntimeGeneration, ProcgenRuntimeGenerationHandleTag > runtimeGenerations
eve::script::RuntimeObjectRegistry< Grid2D, ProcgenGridHandleTag > grids
std::vector< std::string > meshRecipeIdsCache
eve::script::RuntimeObjectRegistry< CloudField, ProcgenCloudFieldHandleTag > clouds
eve::script::RuntimeObjectRegistry< DynamicMeshUvPaintSession, ProcgenDynamicMeshUvPaintSessionHandleTag > dynamicMeshUvPaintSessions
std::unordered_map< std::string, ProcgenSystemSnapshot > previousSystems
std::vector< std::string > textureRecipeIdsCache
eve::script::RuntimeObjectRegistry< MeshGraph, ProcgenMeshGraphHandleTag > meshGraphs
eve::script::RuntimeObjectRegistry< OutputSpec, ProcgenOutputHandleTag > outputs
eve::script::RuntimeObjectRegistry< Heightmap, ProcgenHeightmapHandleTag > heightmaps
eve::script::RuntimeObjectRegistry< SplinePath, ProcgenSplinePathHandleTag > splinePaths
eve::script::RuntimeObjectRegistry< GridGraph, ProcgenGridGraphHandleTag > gridGraphs
eve::script::RuntimeObjectRegistry< image::ImageData, ProcgenNormalImageHandleTag > normalImages
eve::script::RuntimeObjectRegistry< SpatialData, ProcgenSpatialDataHandleTag > spatialData
eve::script::RuntimeObjectRegistry< MeshDeformationSession, ProcgenMeshDeformationSessionHandleTag > meshDeformationSessions
eve::script::RuntimeObjectRegistry< MeshModifierGraph, ProcgenMeshModifierGraphHandleTag > meshModifierGraphs
eve::script::RuntimeObjectRegistry< PointGraph, ProcgenPointGraphHandleTag > pointGraphs
eve::script::RuntimeObjectRegistry< CloudShadow, ProcgenCloudShadowHandleTag > shadows
eve::script::RuntimeObjectRegistry< ShapeGrammar, ProcgenShapeGrammarHandleTag > shapeGrammars
eve::script::RuntimeObjectRegistry< ProcgenContext, ProcgenContextHandleTag > contexts
eve::script::RuntimeObjectRegistry< PbrTextureSet, ProcgenPbrMaterialHandleTag > pbr
eve::script::RuntimeObjectRegistry< Params, ProcgenParamsHandleTag > params
eve::script::RuntimeObjectRegistry< PointSet, ProcgenPointSetHandleTag > points