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


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

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


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

示例1: SendFinalizeEvent

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

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

示例2: SendResumeEvent

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

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

示例3: ReceiveEvaluate

//----------------------------------------------------------------//
void MOAIHarness::ReceiveEvaluate(lua_State *L, json_t* node)
{
	// Get the evaluation.
	json_t* np_eval = json_object_get(node, "Evaluation");
	if (np_eval == NULL || json_typeof(np_eval) != JSON_STRING)
		return;

	// Get the current stack index so we know how many
	// positions to clear afterward.
	int top = lua_gettop(L);

	// Load the string from the message
	MOAIScopedLuaState state ( L );
	int status = luaL_loadstring ( state, json_string_value(np_eval) );
	if ( state.PrintErrors ( ZLLog::CONSOLE, status )) return;

	// Call the string
	state.DebugCall ( 0, 0 );

	// Now unload all of the things we just put on the stack
	// until the stack is the same size.
	std::string indent = "    ";
	json_t* result = MOAIHarness::ConvertStackPartialToJSON(L, top + 1, lua_gettop(L));
	lua_pop(L, lua_gettop(L) - top);

	// Send the message back to the IDE.
	MOAIHarness::SendResult(result);
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:29,代码来源:MOAIHarness.cpp

示例4:

//----------------------------------------------------------------//
extern "C" JNIEXPORT void JNICALL Java_com_ziplinegames_moai_MoaiTapjoy_AKUInvokeListenerWithCode ( JNIEnv* env, jclass obj, jint eventID, jint code ) {

	ZLLog::LogF ( ZLLog::CONSOLE, "Java_com_ziplinegames_moai_MoaiTapjoy_AKUInvokeListenerWithCode\n" );
	MOAIScopedLuaState state = MOAILuaRuntime::Get ().State ();
	if ( MOAITapjoyAndroid::Get ().PushListener ( eventID, state )) {
		state.Push ( code );
		state.DebugCall ( 1, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:10,代码来源:MOAITapjoyAndroid.cpp

示例5: NotifyConnectionComplete

//----------------------------------------------------------------//
void MOAIGooglePlayServicesAndroid::NotifyConnectionComplete () {

	MOAILuaRef& callback = this->mListeners [ CONNECTION_COMPLETE ];

	if ( callback ) {

		MOAIScopedLuaState state = callback.GetSelf ();
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例6: AKUNotifyUserInfoResponse

//----------------------------------------------------------------//
void MOAITstoreGamecenterAndroid::AKUNotifyUserInfoResponse ( cc8* jsonData ) {

	MOAILuaRef& callback = this->mListeners [ GET_USERINFO_RESPONSE ];

	if ( callback ) {
		MOAIScopedLuaState state = callback.GetSelf ();
		lua_pushstring ( state, jsonData );
		state.DebugCall ( 1, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:11,代码来源:MOAITstoreGamecenterAndroid.cpp

示例7: AKUNotifyDisableSuccessResponse

//----------------------------------------------------------------//
void MOAITstoreGamecenterAndroid::AKUNotifyDisableSuccessResponse () {

	MOAILuaRef& callback = this->mListeners [ DISABLE_GAMECENTER_RESPONSE ];

	if ( callback ) {

		MOAIScopedLuaState state = callback.GetSelf ();

		state.DebugCall ( 0, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:12,代码来源:MOAITstoreGamecenterAndroid.cpp

示例8: AKUNotifyAuthSuccessResponse

//----------------------------------------------------------------//
void MOAITstoreGamecenterAndroid::AKUNotifyAuthSuccessResponse () {

	MOAILuaRef& callback = this->mListeners [ AUTH_RESPONSE_SUCCESS ];

	if ( callback ) {

		MOAIScopedLuaState state = callback.GetSelf ();

		state.DebugCall ( 0, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:12,代码来源:MOAITstoreGamecenterAndroid.cpp

示例9: OnDepNodeUpdate

//----------------------------------------------------------------//
void MOAIScriptNode::OnDepNodeUpdate () {

	if ( this->mOnUpdate ) {
		
		MOAIScopedLuaState state = MOAILuaRuntime::Get ().State ();
		if ( this->mOnUpdate.PushRef ( state )) {
			this->PushLuaUserdata ( state );
			state.DebugCall ( 1, 0 );
		}
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:12,代码来源:MOAIScriptNode.cpp

示例10: ParseEvent

//----------------------------------------------------------------//
void MOAIWheelSensor::ParseEvent ( ZLStream& eventStream ) {
	
	this->mDelta = eventStream.Read < float >( 0.0f );
	this->mValue += this->mDelta;
	
	if ( this->mCallback ) {
		MOAIScopedLuaState state = this->mCallback.GetSelf ();
		lua_pushnumber ( state, this->mDelta );
		state.DebugCall ( 1, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:12,代码来源:MOAIWheelSensor.cpp

示例11: NotifyVideoComplete

//================================================================//
// MOAIAdColonyAndroid
//================================================================//
//----------------------------------------------------------------//
void MOAIAdColonyAndroid::NotifyVideoComplete () {	
	
	MOAILuaRef& callback = this->mListeners [ VIDEO_ENDED_IN_ZONE ];
	
	if ( callback ) {
		
		MOAIScopedLuaState state = callback.GetSelf ();
		
		state.DebugCall ( 0, 0 );
	}
}
开发者ID:Heyzap,项目名称:moai-dev,代码行数:15,代码来源:MOAIAdColonyAndroid.cpp

示例12: NotifyInterstitialDismissed

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

示例13: NotifyInterstitialLoadFailed

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

示例14: NotifyMoviePlayerCompleted

//----------------------------------------------------------------//
void MOAIMoviePlayerAndroid::NotifyMoviePlayerCompleted () {
	
	MOAILuaRef& callback = this->mListeners [ MOVIE_PLAYER_COMPLETED ];
		
	if ( callback ) {
		
		MOAIScopedLuaState state = callback.GetSelf ();

		state.DebugCall ( 0, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:12,代码来源:MOAIMoviePlayerAndroid.cpp

示例15: NotifyMoviePlayerReady

//----------------------------------------------------------------//
void MOAIMoviePlayerAndroid::NotifyMoviePlayerReady () {
	
	MOAILuaRef& callback = this->mListeners [ MOVIE_PLAYER_READY ];
		
	if ( callback ) {
		
		MOAIScopedLuaState state = callback.GetSelf ();

		state.DebugCall ( 0, 0 );
	}
}
开发者ID:Limingming2,项目名称:meyume-moai-1-6,代码行数:12,代码来源:MOAIMoviePlayerAndroid.cpp


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