예제 #1
0
        private string[] GetCommandList(ePrivLevel privilegeLevel)
        {
            lock (m_syncObject)
            {
                if (!m_commandLists.Keys.Contains(privilegeLevel))
                {
                    string[] commandList = ScriptMgr.GetCommandList(privilegeLevel, true);
                    Array.Sort(commandList);
                    m_commandLists.Add(privilegeLevel, commandList);
                }

                return(m_commandLists[privilegeLevel]);
            }
        }