Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

FOrreryTerrainTileStoreIndex::

AddField

Experimental

Lay out one field with every slot absent.

Declaration

bool AddField(uint8 FieldId, double Cell_m, FIntPoint MinTile, FIntPoint MaxTile, uint8 MaxMip);
Header
#include "OrreryTerrainTileStoreAsset.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.
Thread
Thread-safe to read. (the rule of FOrreryTerrainTileStoreIndex)

Description

Call once per field, in increasing Id, before any SetSlot.

Parameters

NameTypeDefaultMeaning
FieldIduint8——
Cell_mdouble——
MinTileFIntPoint——
MaxTileFIntPoint——
MaxMipuint8——

Returns

false for an empty rectangle, MaxMip above 30, a non-positive cell, a repeated or decreasing Id, or more than 2^31 slots.