本文整理汇总了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 );
}
}
示例2: SendResumeEvent
//----------------------------------------------------------------//
void MOAISim::SendResumeEvent () {
MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
if ( this->PushListener ( EVENT_RESUME, state )) {
state.DebugCall ( 0, 0 );
}
}
示例3: SendFinalizeEvent
//----------------------------------------------------------------//
void MOAISim::SendFinalizeEvent () {
MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
if ( this->PushListener ( EVENT_FINALIZE, state )) {
state.DebugCall ( 0, 0 );
}
}
示例4: PauseMOAI
//----------------------------------------------------------------//
void MOAISim::PauseMOAI () {
MOAILuaStateHandle state = MOAILuaRuntime::Get ().State ();
if ( this->PushListener ( EVENT_PAUSED, state )) {
state.DebugCall ( 0, 0 );
}
this->mLoopState = PAUSED;
}
示例5: WillEndSession
//----------------------------------------------------------------//
void MOAIApp::WillEndSession( ) {
MOAILuaRef& callback = this->mListeners [ SESSION_END ];
if ( callback ) {
MOAILuaStateHandle state = callback.GetSelf ();
state.DebugCall ( 0, 0 );
}
}
示例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 );
}
示例7: NotifyDialogDismissed
//----------------------------------------------------------------//
void MOAIApp::NotifyDialogDismissed ( int dialogResult ) {
if ( ! mDialogCallback.IsNil() ) {
MOAILuaStateHandle state = mDialogCallback.GetSelf ();
state.Push ( dialogResult );
state.DebugCall ( 1, 0 );
mDialogCallback.Clear();
}
}
示例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 );
}
}
示例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 );
}
}
示例10: NotifyInterstitialDismissed
//----------------------------------------------------------------//
void MOAIChartBoostAndroid::NotifyInterstitialDismissed () {
MOAILuaRef& callback = this->mListeners [ INTERSTITIAL_DISMISSED ];
if ( callback ) {
MOAILuaStateHandle state = callback.GetSelf ();
state.DebugCall ( 0, 0 );
}
}
示例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 );
}
}
示例12: NotifyInterstitialLoadFailed
//----------------------------------------------------------------//
void MOAIChartBoostAndroid::NotifyInterstitialLoadFailed () {
MOAILuaRef& callback = this->mListeners [ INTERSTITIAL_LOAD_FAILED ];
if ( callback ) {
MOAILuaStateHandle state = callback.GetSelf ();
state.DebugCall ( 0, 0 );
}
}
示例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 );
}
}
示例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 );
}
}
示例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 );
}