本文整理汇总了C++中CyArgsList类的典型用法代码示例。如果您正苦于以下问题:C++ CyArgsList类的具体用法?C++ CyArgsList怎么用?C++ CyArgsList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CyArgsList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: reportInit
void CvDllPythonEvents::reportInit()
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("Init"); // add key to lookup python handler fxn
postEvent(eventData);
}
}
示例2: preSave
void CvDllPythonEvents::preSave()
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("OnPreSave");
postEvent(eventData);
}
}
示例3: reportChat
void CvDllPythonEvents::reportChat(CvWString szString)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("chat"); // add key to lookup python handler fxn
eventData.add(szString);
postEvent(eventData);
}
}
示例4: reportEndGameTurn
void CvDllPythonEvents::reportEndGameTurn(int iGameTurn)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("EndGameTurn"); // add key to lookup python handler fxn
eventData.add(iGameTurn);
postEvent(eventData);
}
}
示例5: reportWindowActivation
void CvDllPythonEvents::reportWindowActivation(bool bActive)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("windowActivation");
eventData.add(bActive);
postEvent(eventData);
}
}
示例6: reportGenericEvent
void CvDllPythonEvents::reportGenericEvent(const char* szEventName, void *pyArgs)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add(szEventName);
eventData.add(pyArgs); // generic args tuple
postEvent(eventData);
}
}
示例7: reportEndGoldenAge
void CvDllPythonEvents::reportEndGoldenAge(PlayerTypes ePlayer)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("endGoldenAge"); // add key to lookup python handler fxn
eventData.add((int)ePlayer);
postEvent(eventData);
}
}
示例8: reportSetPlayerAlive
void CvDllPythonEvents::reportSetPlayerAlive( PlayerTypes ePlayerID, bool bNewValue )
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("setPlayerAlive");
eventData.add((int)ePlayerID);
eventData.add(bNewValue);
postEvent(eventData);
}
}
示例9: reportVictory
void CvDllPythonEvents::reportVictory(TeamTypes eNewWinner, VictoryTypes eNewVictory)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("victory"); // add key to lookup python handler fxn
eventData.add((int)eNewWinner);
eventData.add((int)eNewVictory);
postEvent(eventData);
}
}
示例10: reportCorporationFounded
void CvDllPythonEvents::reportCorporationFounded(CorporationTypes eType, PlayerTypes ePlayer)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("corporationFounded"); // add key to lookup python handler fxn
eventData.add((int)eType);
eventData.add((int)ePlayer);
postEvent(eventData);
}
}
示例11: reportTechSelected
void CvDllPythonEvents::reportTechSelected(TechTypes eTech, PlayerTypes ePlayer)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("techSelected"); // add key to lookup python handler fxn
eventData.add((int)eTech);
eventData.add((int)ePlayer);
postEvent(eventData);
}
}
示例12: reportFirstContact
void CvDllPythonEvents::reportFirstContact(TeamTypes eTeamID1, TeamTypes eTeamID2)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("firstContact"); // add key to lookup python handler fxn
eventData.add((int)eTeamID1);
eventData.add((int)eTeamID2);
postEvent(eventData);
}
}
示例13: reportBeginPlayerTurn
void CvDllPythonEvents::reportBeginPlayerTurn(int iGameTurn, PlayerTypes ePlayer)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("BeginPlayerTurn"); // add key to lookup python handler fxn
eventData.add(iGameTurn);
eventData.add((int)ePlayer);
postEvent(eventData);
}
}
示例14: reportRouteBuilt
void CvDllPythonEvents::reportRouteBuilt(int iRouteType, int iX, int iY)
{
if (preEvent())
{
CyArgsList eventData;
eventData.add("routeBuilt"); // add key to lookup python handler fxn
eventData.add(iRouteType);
eventData.add(iX);
eventData.add(iY);
postEvent(eventData);
}
}
示例15: getBugOptionINT
int getBugOptionINT(const char* id, int iDefault, const char* xmlKey)
{
CyArgsList argsList;
long lResult = 0;
argsList.add(id);
argsList.add(iDefault);
gDLL->getPythonIFace()->callFunction(PYBugOptionsModule, "getOptionINT", argsList.makeFunctionArgs(), &lResult);
return lResult;
}