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


C++ MOAILuaStateHandle类代码示例

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


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

示例1: 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

示例2: SetValue

//----------------------------------------------------------------//
void MOAIEnvironment::SetValue ( cc8* key ) {

	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	this->PushLuaClassTable ( state );
	state.ClearField ( -1, key );
	state.Pop ( 1 );
}
开发者ID:,项目名称:,代码行数:8,代码来源:

示例3: SetConfigurationName

//----------------------------------------------------------------//
void MOAIInputMgr::SetConfigurationName ( cc8* name ) {

	MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
	this->PushLuaClassTable ( state );
	
	state.SetField ( -1, LUAVAR_CONFIGURATION, name );
}
开发者ID:SimonRen,项目名称:moai-beta,代码行数:8,代码来源:MOAIInputMgr.cpp

示例4: AKURunBytecode

//----------------------------------------------------------------//
void AKURunBytecode ( void* data, size_t size ) {

	if ( size ) {
		MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
		state.Run ( data, size, 0, 0 );
	}
}
开发者ID:,项目名称:,代码行数:8,代码来源:

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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,代码来源:

示例10: 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

示例11: 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

示例12: NotifyInterstitialDismissed

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

示例13: NotifyInterstitialLoadFailed

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

示例14: 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,代码来源:

示例15: 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


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