Exemplo n.º 1
0
void	CzPlatformAds::NotifyAdEvent(const char* evt, const char* data1, int data2)
{
	CzScriptCallback& callback = getScriptCallback();
	if (callback.Valid)
	{
		CzString p1 = evt;
		CzString p2 = data1;
		CzString p3 = data2;
		callback.ScriptEngine->CallFunctionRef(callback.FunctionRef, &p1, &p2, &p3, NULL);
	}
}
Exemplo n.º 2
0
void	CzMarket::NotifyInfoAvailable()
{
	Busy = false;
	ProcessEventActions(CZ_HASH("OnInfoAvailable"), Parent->getParent());
	CzScriptCallback& callback = getScriptCallback();
	if (callback.Valid)
	{
		CzString p1 = "info";
		CzString p2 = CurrentProductID;
		callback.ScriptEngine->CallFunctionRef(callback.FunctionRef, &p1, &p2, NULL, NULL);
	}
}
Exemplo n.º 3
0
void	CzMarket::NotifyBillingDisabled()
{
	Busy = false;
	ProcessEventActions(CZ_HASH("OnBillingDisabled"), Parent->getParent());
	CzScriptCallback& callback = getScriptCallback();
	if (callback.Valid)
	{
		CzString p1 = "disabled";
		CzString p2 = CurrentProductID;
		callback.ScriptEngine->CallFunctionRef(callback.FunctionRef, &p1, &p2, NULL, NULL);
	}
	Busy = false;
}