CyArtFileMgrInterface.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233
  1. #include "CvGameCoreDLL.h"
  2. #include "CyArtFileMgr.h"
  3. #include "CvInfos.h"
  4. //
  5. // published python interface for CyArea
  6. //
  7. void CyArtFileMgrPythonInterface()
  8. {
  9. OutputDebugString("Python Extension Module - CyArtFileMgrPythonInterface\n");
  10. python::class_<CyArtFileMgr>("CyArtFileMgr")
  11. .def("isNone", &CyArtFileMgr::isNone, "bool () - Checks to see if pointer points to a real object")
  12. .def("Reset", &CyArtFileMgr::Reset, "void ()")
  13. .def("buildArtFileInfoMaps", &CyArtFileMgr::buildArtFileInfoMaps, "void ()")
  14. .def("getInterfaceArtInfo", &CyArtFileMgr::getInterfaceArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoInterface ()")
  15. .def("getMovieArtInfo", &CyArtFileMgr::getMovieArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoMovie ()")
  16. .def("getMiscArtInfo", &CyArtFileMgr::getMiscArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoMisc ()")
  17. .def("getUnitArtInfo", &CyArtFileMgr::getUnitArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoUnit ()")
  18. .def("getBuildingArtInfo", &CyArtFileMgr::getBuildingArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoBuilding ()")
  19. .def("getCivilizationArtInfo", &CyArtFileMgr::getCivilizationArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoCivilization ()")
  20. .def("getLeaderheadArtInfo", &CyArtFileMgr::getLeaderheadArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoLeaderhead ()")
  21. .def("getBonusArtInfo", &CyArtFileMgr::getBonusArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoBonus ()")
  22. .def("getImprovementArtInfo", &CyArtFileMgr::getImprovementArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoImprovement ()")
  23. .def("getTerrainArtInfo", &CyArtFileMgr::getTerrainArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoTerrain ()")
  24. .def("getFeatureArtInfo", &CyArtFileMgr::getFeatureArtInfo, python::return_value_policy<python::reference_existing_object>(), "CvArtInfoFeature ()")
  25. ;
  26. }