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


C++ MOAILuaStateHandle::DebugCall方法代码示例

本文整理汇总了C++中MOAILuaStateHandle::DebugCall方法的典型用法代码示例。如果您正苦于以下问题:C++ MOAILuaStateHandle::DebugCall方法的具体用法?C++ MOAILuaStateHandle::DebugCall怎么用?C++ MOAILuaStateHandle::DebugCall使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MOAILuaStateHandle的用法示例。


在下文中一共展示了MOAILuaStateHandle::DebugCall方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ShouldPause

void MOAISim::ShouldPause () {

	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	if ( this->PushListener ( EVENT_WILL_PAUSE, state )) {
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:leonlee,项目名称:moai-1.1-build-2,代码行数:7,代码来源:MOAISim.cpp

示例2: SendResumeEvent

//----------------------------------------------------------------//
void MOAISim::SendResumeEvent () {

	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	if ( this->PushListener ( EVENT_RESUME, state )) {
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:AzureRodrigo,项目名称:moai-dev,代码行数:8,代码来源:MOAISim.cpp

示例3: SendFinalizeEvent

//----------------------------------------------------------------//
void MOAISim::SendFinalizeEvent () {

	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	if ( this->PushListener ( EVENT_FINALIZE, state )) {
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:Odie,项目名称:moai-beta,代码行数:8,代码来源:MOAISim.cpp

示例4: PauseMOAI

//----------------------------------------------------------------//
void MOAISim::PauseMOAI () {

	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	if ( this->PushListener ( EVENT_PAUSED, state )) {
		state.DebugCall ( 0, 0 );
	}

	this->mLoopState = PAUSED;
}
开发者ID:leonlee,项目名称:moai-1.1-build-2,代码行数:10,代码来源:MOAISim.cpp

示例5: WillEndSession

//----------------------------------------------------------------//
void MOAIApp::WillEndSession( ) {
	MOAILuaRef& callback = this->mListeners [ SESSION_END ];
	
	if ( callback ) {
		MOAILuaStateHandle state = callback.GetSelf ();
		
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:kengonakajima,项目名称:moai-dev,代码行数:10,代码来源:MOAIApp.cpp

示例6: AKURunString

//----------------------------------------------------------------//
void AKURunString ( const char* script ) {

	int status;
	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	
	status = luaL_loadstring ( state, script );
	if ( state.PrintErrors ( USLog::CONSOLE, status )) return;
	
	state.DebugCall ( 0, 0 );
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例7: NotifyDialogDismissed

//----------------------------------------------------------------//
void MOAIApp::NotifyDialogDismissed ( int dialogResult ) {

	if ( ! mDialogCallback.IsNil() ) {
		MOAILuaStateHandle state = mDialogCallback.GetSelf ();
		
		state.Push ( dialogResult );
		state.DebugCall ( 1, 0 );
		
		mDialogCallback.Clear();
	}
}
开发者ID:kengonakajima,项目名称:moai-dev,代码行数:12,代码来源:MOAIApp.cpp

示例8: NotifyRestoreResponseReceived

//----------------------------------------------------------------//
void MOAIApp::NotifyRestoreResponseReceived ( int code ) {
	MOAILuaRef& callback = this->mListeners [ RESTORE_RESPONSE_RECEIVED ];
	
	if ( callback ) {
		MOAILuaStateHandle state = callback.GetSelf ();

		lua_pushinteger ( state, code );	
		
		state.DebugCall ( 1, 0 );
	}
}
开发者ID:kengonakajima,项目名称:moai-dev,代码行数:12,代码来源:MOAIApp.cpp

示例9: NotifyBillingSupported

//----------------------------------------------------------------//
void MOAIApp::NotifyBillingSupported ( bool supported ) {	
	MOAILuaRef& callback = this->mListeners [ CHECK_BILLING_SUPPORTED ];
	
	if ( callback ) {
		MOAILuaStateHandle state = callback.GetSelf ();
		
		lua_pushboolean ( state, supported );
			
		state.DebugCall ( 1, 0 );
	}
}
开发者ID:kengonakajima,项目名称:moai-dev,代码行数:12,代码来源:MOAIApp.cpp

示例10: NotifyInterstitialDismissed

//----------------------------------------------------------------//
void MOAIChartBoostAndroid::NotifyInterstitialDismissed () {	
	
	MOAILuaRef& callback = this->mListeners [ INTERSTITIAL_DISMISSED ];
	
	if ( callback ) {
		
		MOAILuaStateHandle state = callback.GetSelf ();
		
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:,项目名称:,代码行数:12,代码来源:

示例11: NotifyDialogDismissed

//----------------------------------------------------------------//
void MOAIApp::NotifyDialogDismissed ( int code ) {
	MOAILuaRef& callback = this->mListeners [ DIALOG_DISMISSED ];
	
	if ( callback ) {
		MOAILuaStateHandle state = callback.GetSelf ();

		lua_pushinteger ( state, code );	
		
		state.DebugCall ( 1, 0 );
	}
}
开发者ID:,项目名称:,代码行数:12,代码来源:

示例12: NotifyInterstitialLoadFailed

//----------------------------------------------------------------//
void MOAIChartBoostAndroid::NotifyInterstitialLoadFailed () {	
	
	MOAILuaRef& callback = this->mListeners [ INTERSTITIAL_LOAD_FAILED ];
	
	if ( callback ) {
		
		MOAILuaStateHandle state = callback.GetSelf ();
		
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:,项目名称:,代码行数:12,代码来源:

示例13: NotifyPurchaseResponseReceived

//----------------------------------------------------------------//
void MOAIApp::NotifyPurchaseResponseReceived ( cc8* identifier, int code ) {
	MOAILuaRef& callback = this->mListeners [ PURCHASE_RESPONSE_RECEIVED ];
	
	if ( callback ) {
		MOAILuaStateHandle state = callback.GetSelf ();
		
		lua_pushstring ( state, identifier );
		lua_pushinteger ( state, code );	
		
		state.DebugCall ( 2, 0 );
	}
}
开发者ID:kengonakajima,项目名称:moai-dev,代码行数:13,代码来源:MOAIApp.cpp

示例14: HandleEvent

//----------------------------------------------------------------//
void MOAIJoystickSensor::HandleEvent ( USStream& eventStream ) {

	this->mX = eventStream.Read < float >( 0.0f );
	this->mY = eventStream.Read < float >( 0.0f );
	
	if ( this->mOnStick ) {
		MOAILuaStateHandle state = this->mOnStick.GetSelf ();
		lua_pushnumber ( state, this->mX );
		lua_pushnumber ( state, this->mY );
		state.DebugCall ( 2, 0 );
	}
}
开发者ID:Inzaghi2012,项目名称:moai-dev,代码行数:13,代码来源:MOAIJoystickSensor.cpp

示例15: AKURunScript

//----------------------------------------------------------------//
void AKURunScript ( const char* filename ) {

	if ( !USFileSys::CheckFileExists ( filename )) return;

	int status;
	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	
	status = luaL_loadfile ( state, filename );
	if ( state.PrintErrors ( USLog::CONSOLE, status )) return;
	
	state.DebugCall ( 0, 0 );
}
开发者ID:,项目名称:,代码行数:13,代码来源:


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