当前位置: 首页>>代码示例>>C++>>正文


C++ CyArgsList类代码示例

本文整理汇总了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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:9,代码来源:CvDllPythonEvents.cpp

示例2: preSave

void CvDllPythonEvents::preSave()
{
	if (preEvent())
	{
		CyArgsList eventData;
		eventData.add("OnPreSave");
		postEvent(eventData);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:9,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:10,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:10,代码来源:CvDllPythonEvents.cpp

示例5: reportWindowActivation

void CvDllPythonEvents::reportWindowActivation(bool bActive)
{
	if (preEvent())
	{
		CyArgsList eventData;
		eventData.add("windowActivation");
		eventData.add(bActive);
		postEvent(eventData);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:10,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:10,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:10,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:11,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:11,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:11,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:11,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:11,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:11,代码来源:CvDllPythonEvents.cpp

示例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);
	}
}
开发者ID:DCMF,项目名称:Dawn-of-Civilization,代码行数:12,代码来源:CvDllPythonEvents.cpp

示例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;
}
开发者ID:Alrik2002,项目名称:Civ4-MMod,代码行数:12,代码来源:CvBugOptions.cpp


注:本文中的CyArgsList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。