benilla-re systems structs docs

CWorld::Initialize

function · terrain · orchestration

Address
0x66f6c0 · 1087 bytes, up to 0x66fafe
Signature
void __cdecl (void)
Meaning
Sets the world's flags and defaults, builds the drift cloud and weather, registers 13 console commands
Confidence
verified, proof one
Finding
terrain/world#world-initialization
Test
terrain::doodad_dist_sq_difftest

Finding: World initialization in terrain: world

0x66f6c0 runs once at start-up. It ORs 0x7100b73 into the world flags, sets the alpha reference to 0x80, maxLOD to 3 and the far chunk level to 2, squares the detail doodad horizon (70.0 × 70.0 = 4900), reads the shadow level and the fog end from option objects, calls the scene table fill and the map initializer, builds the drift cloud and the weather manager, hands two callbacks to the model scene and registers 13 console commands.

The derivation is in the doc.

Callers 1

Callees 11

Calls and jumps by a bare address, from tables/calls.tsv.