EgtExecutor :
- aggiunta funzione Exe e Lua BeamUpdatePart.
This commit is contained in:
@@ -70,6 +70,16 @@ ExeBeamErasePart( void)
|
||||
return pBeamMgr->ErasePart() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeBeamUpdatePart( void)
|
||||
{
|
||||
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
|
||||
VERIFY_BEAMMGR( pBeamMgr, false)
|
||||
// forzo aggiornamento del pezzo corrente
|
||||
return pBeamMgr->UpdatePart() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeBeamSetPartProdNbr( int nProdNbr)
|
||||
|
||||
@@ -65,6 +65,18 @@ LuaBeamErasePart( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaBeamUpdatePart( lua_State* L)
|
||||
{
|
||||
// Nessun parametro
|
||||
LuaClearStack( L) ;
|
||||
// forzo aggiornamento del pezzo corrente
|
||||
bool bOk = ExeBeamUpdatePart() ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaBeamSetPartProdNbr( lua_State* L)
|
||||
@@ -325,6 +337,7 @@ LuaInstallBeamMgr( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamCreatePart", LuaBeamCreatePart) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamSetPart", LuaBeamSetPart) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamErasePart", LuaBeamErasePart) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamUpdatePart", LuaBeamUpdatePart) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamSetPartProdNbr", LuaBeamSetPartProdNbr) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamSetPartName", LuaBeamSetPartName) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtBeamSetPartCount", LuaBeamSetPartCount) ;
|
||||
|
||||
Reference in New Issue
Block a user