diff --git a/Project/Assets/LunarPlugin/Editor/Console/CTerminal.cs b/Project/Assets/LunarPlugin/Editor/Console/CTerminal.cs old mode 100755 new mode 100644 index c6fe8e2..bf4ce62 --- a/Project/Assets/LunarPlugin/Editor/Console/CTerminal.cs +++ b/Project/Assets/LunarPlugin/Editor/Console/CTerminal.cs @@ -72,7 +72,7 @@ public string DoAutoComplete(string line, int index, bool isDoubleTab) return result.line; } - catch (CommandAutoCompleteException e) + catch (CCommandAutoCompleteException e) { Add(CCommand.Prompt(line)); Add(e.InnerException, "Exception while auto completing args"); diff --git a/Project/Assets/LunarPlugin/Scripts/CDefaultAppImp.cs b/Project/Assets/LunarPlugin/Scripts/CDefaultAppImp.cs index c7e26af..d7b2df3 100644 --- a/Project/Assets/LunarPlugin/Scripts/CDefaultAppImp.cs +++ b/Project/Assets/LunarPlugin/Scripts/CDefaultAppImp.cs @@ -29,7 +29,7 @@ namespace LunarPluginInternal { class DefaultAppImp : AppImp, IUpdatable, IDestroyable, ICCommandDelegate { - private readonly CommandProcessor m_processor; + private readonly CCommandProcessor m_processor; private readonly TimerManager m_timerManager; private readonly NotificationCenter m_notificationCenter; private readonly UpdatableList m_updatables; @@ -219,9 +219,9 @@ protected virtual NotificationCenter CreateNotificationCenter() return NotificationCenter.SharedInstance; } - protected virtual CommandProcessor CreateCommandProcessor() + protected virtual CCommandProcessor CreateCommandProcessor() { - CommandProcessor processor = new CommandProcessor(); + CCommandProcessor processor = new CCommandProcessor(); processor.CommandDelegate = this; return processor; } diff --git a/Project/Assets/LunarPlugin/Scripts/Console/CCommand.cs b/Project/Assets/LunarPlugin/Scripts/Console/CCommand.cs old mode 100755 new mode 100644 index 6ce126c..0b6f9b9 --- a/Project/Assets/LunarPlugin/Scripts/Console/CCommand.cs +++ b/Project/Assets/LunarPlugin/Scripts/Console/CCommand.cs @@ -707,7 +707,7 @@ internal IList AutoCompleteCustomArgs(string commandLine, string token) } catch (Exception e) { - throw new CommandAutoCompleteException(e); + throw new CCommandAutoCompleteException(e); } } diff --git a/Project/Assets/LunarPlugin/Scripts/Console/CCommandAutoCompleteException.cs b/Project/Assets/LunarPlugin/Scripts/Console/CCommandAutoCompleteException.cs index 9e991db..927b83c 100644 --- a/Project/Assets/LunarPlugin/Scripts/Console/CCommandAutoCompleteException.cs +++ b/Project/Assets/LunarPlugin/Scripts/Console/CCommandAutoCompleteException.cs @@ -30,9 +30,9 @@ namespace LunarPluginInternal { - class CommandAutoCompleteException : Exception + class CCommandAutoCompleteException : Exception { - public CommandAutoCompleteException(Exception e) + public CCommandAutoCompleteException(Exception e) : base("Custom command autocomplete exception", e) { } diff --git a/Project/Assets/LunarPlugin/Scripts/Console/CCommandProcessor.cs b/Project/Assets/LunarPlugin/Scripts/Console/CCommandProcessor.cs index fb9188f..1e3c366 100644 --- a/Project/Assets/LunarPlugin/Scripts/Console/CCommandProcessor.cs +++ b/Project/Assets/LunarPlugin/Scripts/Console/CCommandProcessor.cs @@ -42,17 +42,17 @@ static class CCommandNotifications public static readonly string KeyName = "name"; // string } - interface ICommandProcessorDelegate + interface ICCommandProcessorDelegate { - void OnCommandExecuted(CommandProcessor processor, CCommand cmd); - void OnCommandUnknown(CommandProcessor processor, string cmdName); + void OnCommandExecuted(CCommandProcessor processor, CCommand cmd); + void OnCommandUnknown(CCommandProcessor processor, string cmdName); } - class CommandProcessor + class CCommandProcessor { private ICCommandDelegate m_delegate; - public CommandProcessor() + public CCommandProcessor() { CommandDelegate = null; } @@ -161,7 +161,7 @@ private void NotifyCommandUnknown(string cmdName) #region Properties - public ICommandProcessorDelegate Delegate { get; set; } + public ICCommandProcessorDelegate Delegate { get; set; } public ICCommandDelegate CommandDelegate { get { return m_delegate; } @@ -171,9 +171,9 @@ public ICCommandDelegate CommandDelegate #endregion } - class TokenizeException : Exception + class CCommandTokenizeException : Exception { - public TokenizeException(string message) + public CCommandTokenizeException(string message) : base(message) { } diff --git a/Project/Assets/LunarPlugin/Scripts/Console/CCommandSplitter.cs b/Project/Assets/LunarPlugin/Scripts/Console/CCommandSplitter.cs old mode 100755 new mode 100644 index 79f3613..e79f672 --- a/Project/Assets/LunarPlugin/Scripts/Console/CCommandSplitter.cs +++ b/Project/Assets/LunarPlugin/Scripts/Console/CCommandSplitter.cs @@ -101,12 +101,12 @@ public static void Split(string str, IList list, int options = 0) if (insideDoubleQuotes && !HasOption(options, OPTION_IGNORE_MISSING_QUOTES)) { - throw new TokenizeException("Missing closing double quote"); + throw new CCommandTokenizeException("Missing closing double quote"); } if (insideSingleQuotes && !HasOption(options, OPTION_IGNORE_MISSING_QUOTES)) { - throw new TokenizeException("Missing closing single quote"); + throw new CCommandTokenizeException("Missing closing single quote"); } if (commandBuffer.Length > 0) @@ -120,7 +120,7 @@ private static void AddCommand(StringBuilder buffer, IList list) string command = buffer.ToString().Trim(); if (command.Length == 0) { - throw new TokenizeException("Can't add empty command"); + throw new CCommandTokenizeException("Can't add empty command"); } list.Add(command); diff --git a/Project/Assets/LunarPlugin/Scripts/Console/CCommandTokenizer.cs b/Project/Assets/LunarPlugin/Scripts/Console/CCommandTokenizer.cs old mode 100755 new mode 100644 index d6a294c..1250ccb --- a/Project/Assets/LunarPlugin/Scripts/Console/CCommandTokenizer.cs +++ b/Project/Assets/LunarPlugin/Scripts/Console/CCommandTokenizer.cs @@ -156,12 +156,12 @@ public static void Tokenize(string str, IList tokens, int options = 0) if (insideDoubleQuotes && !HasOption(options, OPTION_IGNORE_MISSING_QUOTES)) { - throw new TokenizeException("Missing closing double quote: " + str); + throw new CCommandTokenizeException("Missing closing double quote: " + str); } if (insideSingleQuotes && !HasOption(options, OPTION_IGNORE_MISSING_QUOTES)) { - throw new TokenizeException("Missing closing single quote: " + str); + throw new CCommandTokenizeException("Missing closing single quote: " + str); } AddToken(tokenBuffer, tokens);