EgtExecutor :

- aggiunta funzione Exe e Lua DuploGetModified.
This commit is contained in:
Dario Sassi
2021-02-08 18:24:22 +00:00
parent de8cafc5ba
commit a37049f280
2 changed files with 38 additions and 0 deletions
+20
View File
@@ -469,6 +469,25 @@ LuaDuploSetModified( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaDuploGetModified( lua_State* L)
{
// 1 parametro : nSouId
int nSouId ;
LuaCheckParam( L, 1, nSouId)
LuaClearStack( L) ;
// recupero lo stato di modifica del pezzo
bool bModif ;
bool bOk = ExeDuploGetModified( nSouId, bModif) ;
// restituisco il risultato
if ( bOk)
LuaSetParam( L, bModif) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaDuploUpdate( lua_State* L)
@@ -549,6 +568,7 @@ LuaInstallGdbPartLayer( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtDuploCount", LuaDuploCount) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtDuploList", LuaDuploList) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtDuploSetModified", LuaDuploSetModified) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtDuploGetModified", LuaDuploGetModified) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtDuploUpdate", LuaDuploUpdate) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtIsDuplo", LuaIsDuplo) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtDuploGetOriginal", LuaDuploGetOriginal) ;