载入中...
搜索中...
未找到
TerrainObjectPlacement.h 文件参考
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
#include "common/Result.h"

浏览源代码.

类

struct  eve::procgen::TerrainObjectInstanceSettings
 One resource entry emitted around each accepted Pcg game-object prototype location. 更多...
 
struct  eve::procgen::TerrainObjectPlacementSettings
 Deterministic Pcg SetTerrainGameObjects scan, collision and resource configuration. 更多...
 
struct  eve::procgen::TerrainObjectTile
 One exclusively borrowed terrain object owner and its immutable height source. 更多...
 
class  eve::procgen::TerrainMultiObjectWorkspace
 Owning transactional multi-terrain object workspace with undo and redo snapshots. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

枚举

enum class  eve::procgen::TerrainObjectScaleMode : std::uint8_t { eve::procgen::Fixed , eve::procgen::Random , eve::procgen::Fitness , eve::procgen::FitnessRandomized }
 Pcg-compatible scale policy for one terrain object instance resource. 更多...
 
enum class  eve::procgen::TerrainObjectYOffsetMode : std::uint8_t { eve::procgen::TerrainHeight , eve::procgen::SeaLevel , eve::procgen::Custom }
 Height reference used by one terrain object instance resource. 更多...
 
enum class  eve::procgen::TerrainObjectOperationMode : std::uint8_t { eve::procgen::Add , eve::procgen::Replace , eve::procgen::Remove }
 Mutation performed by a multi-terrain game-object operation. 更多...
 

函数

Result< int > eve::procgen::exportTerrainObjectPoints (PointSet &output, const Heightmap &fitness, const Heightmap &heights, const TerrainObjectPlacementSettings &settings)
 Export Pcg-style terrain game-object resources into an attributed PointSet atomically.
 
Result< int > eve::procgen::removeTerrainObjectPoints (PointSet &output, const PointSet &input, const Heightmap &fitness, const TerrainObjectPlacementSettings &settings, float removalStrength)
 Remove matching prototype points wherever fitness is strictly above removalStrength.
 
Result< TerrainMultiTileReport > eve::procgen::applyTerrainObjectsMultiTile (const std::vector< TerrainObjectTile > &tiles, const Heightmap &operationFitness, const TerrainObjectPlacementSettings &settings, const TerrainStampSettings &operationSettings, TerrainObjectOperationMode mode, bool worldMapOperation, const std::vector< std::string > &validTerrainNames={})
 Apply one Pcg-style game-object rule over mapped terrain tiles atomically.