Hi all, software dev here new to Civ modding!
I'm trying to figure out how to find what function arguments mean.
For example:
But I can't find where TerrainBuilder itself lives, nor where TerrainBuilder.modelRivers is defined.
Things I've tried:
Looking at all TerrainBuilder references hoping to find a function def or import:
This gives me usages of TerrainBuilder of course, but not where its functions are defined.
Looking at all modelRivers references:
Similarly, I can't find where modelRivers is defined.
Looking for modelRivers function export:
This gives no results, so as far as I can tell TerrainBuilder functions aren't defined the same way other JS functions are.
Any pointers on how to find where this function is defined?
More generally, what's the best way to find out what function parameters mean?
Thanks in advance!
I'm trying to figure out how to find what function arguments mean.
For example:
JavaScript:
TerrainBuilder.modelRivers(5, 15, globals.g_NavigableRiverTerrain);
But I can't find where TerrainBuilder itself lives, nor where TerrainBuilder.modelRivers is defined.
Things I've tried:
Looking at all TerrainBuilder references hoping to find a function def or import:
Bash:
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VII\Base\modules> findstr /s /i /m \<TerrainBuilder\> *.*
Looking at all modelRivers references:
Bash:
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VII\Base\modules> findstr /s /i /m \<modelRivers\> *.*
Looking for modelRivers function export:
Bash:
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VII\Base> findstr /s /i /m /c:"export function modelRivers" *.*
Any pointers on how to find where this function is defined?
More generally, what's the best way to find out what function parameters mean?
Thanks in advance!