Afforess
The White Wizard
I was bored, and looking in the SDK to see where exactly I would need to change it to found cities on water. Well, apparently, Firaxis beat me to it. However, I'm not sure about the way they implemented it, and if it is ever used.
Here's the code I discovered:
So, is it referencing a python callback? Are there any mods that use this?
Here's the code I discovered:
Code:
bool CvPlayer::canFound(int iX, int iY, bool bTestVisible) const
{...
if(GC.getUSE_CAN_FOUND_CITIES_ON_WATER_CALLBACK())
{
CyArgsList argsList2;
argsList2.add(iX);
argsList2.add(iY);
lResult=0;
gDLL->getPythonIFace()->callFunction(PYGameModule, "canFoundCitiesOnWater", argsList2.makeFunctionArgs(), &lResult);
}
if (lResult == 1)
{
bValid = true;
}
else
{
if (pPlot->isWater())
{
return false;
}
}
...
}
So, is it referencing a python callback? Are there any mods that use this?