是否有办法将新的班级(继承C++级的平级班级)转至++,不必再保留对标的的回报,而只是把它作为++点。
例如:
C++
object pyInstance = GetLocalDict()["makeNewGamePlay"]();
CGEPYGameMode* m_pGameMode = extract< CGEPYGameMode* >( pyInstance );
pyth:
class Alpha(CGEPYGameMode):
def someFunct(self):
pass
def makeNewGamePlay():
return Alpha()
pyInstance is the python category instance and m_pGameMode is a pointer to the c++ baseclass of the same instance. 然而,如果一把点子储存起来,使物体脱离范围,则对 p子进行清理。 难道只有把目标清理起来才能找到吗?