CWorld::Initialize
function · terrain · orchestration
- Address
0x66f6c0· 1087 bytes, up to0x66fafe- 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
- WowClientInit client
Callees 11
- CGxTexFlags::CGxTexFlags gx
- GxTexCreate gx
- ConsoleCommandRegister console
- SMemAlloc storm
- BuildWeatherManager lighting
- InitSceneTables terrain
- CreateDriftCloud terrain
- CMap::Initialize terrain
- M2CreateScene models
- M2SceneSetSpecialCallback models
- M2SceneSetGroundCallback models
Calls and jumps by a bare address, from tables/calls.tsv.