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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user