Now may be I'm asking the wrong question, if I'm please pull my ear and teach me:
In CvPlayer.cpp there is a function canRevolution that is exposed to python. I'm using this function to create a little random event. The function declaration looks like this:
Notice its argument is a pointer type instead a plain int like CivicTypes.
I tried to use call this function in Python using the argument gc.getInfoTypeForString("CIVICxxxxxx") but it gives a runtime error, Yes it should be.
Anyone knows how to call this function with a pointer to civic argument in python?
In CvPlayer.cpp there is a function canRevolution that is exposed to python. I'm using this function to create a little random event. The function declaration looks like this:
Code:
bool canRevolution(CivicTypes* paeNewCivics) const;
Notice its argument is a pointer type instead a plain int like CivicTypes.
I tried to use call this function in Python using the argument gc.getInfoTypeForString("CIVICxxxxxx") but it gives a runtime error, Yes it should be.
Anyone knows how to call this function with a pointer to civic argument in python?