EgtExecutor 2.1g4 :
- aggiunte funzioni lua EgtSetVal e EgtGetVal (imposto e leggo su stringa Key=Val) - aggiunta funzione lua EgtSimulate (simulazione in cieco per verifica collisioni e corse) - aggiunte funzioni ExeSetEnableUI e ExeGetEnableUI per disabilitare e riabilitare aggiornamenti interfaccia utente.
This commit is contained in:
+19
-1
@@ -2914,6 +2914,23 @@ LuaEstimate( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaSimulate( lua_State* L)
|
||||
{
|
||||
// nessun parametro
|
||||
LuaClearStack( L) ;
|
||||
// eseguo la simulazione
|
||||
int nErr ;
|
||||
string sErr ;
|
||||
bool bOk = ExeSimulate( nErr, sErr) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
LuaSetParam( L, nErr) ;
|
||||
LuaSetParam( L, sErr) ;
|
||||
return 3 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
// Machine Calc
|
||||
//-------------------------------------------------------------------------------
|
||||
@@ -3693,9 +3710,10 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimGetOperationInfo", LuaSimGetOperationInfo) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimGetMoveInfo", LuaSimGetMoveInfo) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimExit", LuaSimExit) ;
|
||||
// Generation & T&L estimation
|
||||
// Generation, T&L estimation e Simulazione
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGenerate", LuaGenerate) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtEstimate", LuaEstimate) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimulate", LuaSimulate) ;
|
||||
// Machine
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetBaseId", LuaGetBaseId) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetTableId", LuaGetTableId) ;
|
||||
|
||||
Reference in New Issue
Block a user