EgtExecutor :

- aggiunte funzioni Exe ExeSetUserLevel e ExeGetUserLevel
- aggiunta funzione Lua EgtGetUserLevel
- piccola modifica (Exe e Lua) a calcolo intersezioni piani paralleli con superficie.
This commit is contained in:
DarioS
2022-05-09 19:32:30 +02:00
parent f1d5fbfe94
commit 95c0673c72
4 changed files with 43 additions and 13 deletions
+16
View File
@@ -44,6 +44,7 @@ static int s_nDebugLev = 0 ;
static Logger* s_pGenLog = nullptr ;
static bool s_bCmdLog = false ;
static Logger* s_pCmdLog = nullptr ;
static int s_nUserLev = 1 ;
static string s_sKey ;
static int s_nKeyType = KEY_LOCK_TYPE_ANY ;
static int s_nKeyExpDays = 0 ;
@@ -195,6 +196,21 @@ ExeGetDebugLevel( void)
return s_nDebugLev ;
}
//-----------------------------------------------------------------------------
bool
ExeSetUserLevel( int nUserLev)
{
s_nUserLev = max( nUserLev, 1) ;
return true ;
}
//-----------------------------------------------------------------------------
int
ExeGetUserLevel( void)
{
return s_nUserLev ;
}
//-----------------------------------------------------------------------------
bool
ExeSetKey( const string& sKey)