Can someone explain, how the C++ and Python code correspond with each other?
Inter alia:
- how Cy***.h/.cpp corresponds with the Python code? There are no DLLExport-s, so are they loaded directly into Python?
- why the interfaces of C++ classes used in the Python code do not match? Like, there is getPlayer() method called on a CyGlobalContext object in a python file, but in the C++ class definition there is no such.
- does the python identify objects, like units or cities, from the C++ code by pairs played's id + object's id, or by IDInfo objects? And if the second, can the IDInfo's structure be changed?
And btw question
- does all communication between CvGameCoreDLL and the engine goes through Python?
Inter alia:
- how Cy***.h/.cpp corresponds with the Python code? There are no DLLExport-s, so are they loaded directly into Python?
- why the interfaces of C++ classes used in the Python code do not match? Like, there is getPlayer() method called on a CyGlobalContext object in a python file, but in the C++ class definition there is no such.
- does the python identify objects, like units or cities, from the C++ code by pairs played's id + object's id, or by IDInfo objects? And if the second, can the IDInfo's structure be changed?
And btw question
- does all communication between CvGameCoreDLL and the engine goes through Python?