Orrery Terrain · OrreryTerrainCore module · struct
Native::
FScatterPosts
ExperimentalA read-only view of one chunk's posts: FTerrainChunkPosts in plain C++.
Declaration
struct FScatterPosts- Header
#include "Native/TerrainScatter.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainCore");in your module’s Build.cs.- Stability
- Experimental: supported, may change in a minor version, with a changelog line.
- Thread
- Tier 1: plain C++, no allocation, deterministic in canonical order (ascending candidate index), any thread. (the header’s rule)
Description
Nothing is owned or copied.
Row-major, index = Row * Posts + Col, X = column, Y = row. Heights in cm above OriginZ.
Properties
| Name | Type | Default | Meaning |
|---|---|---|---|
Tile | int32_ | 0 | Edit-layer tile of the chunk: part of every key. |
Tile | int32_ | 0 | — |
Posts | int32_ | 0 | Posts per side; 0 = empty (nothing scatters). |
Origin | double | 0.0 | World position of post (0,0), cm. |
Origin | double | 0.0 | — |
Origin | double | 0.0 | The datum of Heights, cm; added to every world Z. |
Cell | double | 100.0 | Post spacing, cm. |
Heights | FPost | — | Posts² heights as stored ( |
Cell | const uint8_ | nullptr | (Posts-1)² ground classes, 0xFF = hole; nullptr = every cell class 0. |
Paint | int32_ | 0 | Pairs any post uses ( |
Paint | FPaint | — | The chunk's paint planes, Posts² values each, a null plane reading 0 ( |