Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

ScatterVarietySeed

Experimental

The seed of one variety: 64-bit FNV-1a over the grass type's package path (UTF-8 bytes, no terminator) followed by the four little-endian bytes of the variety index.

Declaration

uint64_t ScatterVarietySeed(const char* PackagePath, int32_t VarietyIndex);
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)

Parameters

NameTypeDefaultMeaning
PackagePathconst char*—

Null-terminated UTF-8 path, e.g. "/Game/Grass/GT_Meadow"; nullptr hashes as "".

VarietyIndexint32_t—

Index in the grass type's GrassVarieties.