removed extension for region names + refactor

This commit is contained in:
2019-01-13 17:12:37 -06:00
parent 7116eb0437
commit 0b812f45fe
4 changed files with 19 additions and 20 deletions

View File

@@ -86,7 +86,7 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
/// <param name="argument">The argument to find the index of.</param>
/// <param name="arguments">The array containing all arguments.</param>
/// <returns>The index or throws argument exception if it doesn't exist.</returns>
public int IndexOfArgumentIn(string argument, string[] arguments)
public int IndexOfArgument(string argument, string[] arguments)
{
if (arguments != null)
{
@@ -105,7 +105,7 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
{
try
{
IndexOfArgumentIn(argument, arguments);
IndexOfArgument(argument, arguments);
}
catch (ArgumentException)
{
@@ -127,7 +127,7 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
/// <returns>The index or throws argument exception if it doesn't exist.</returns>
public int IndexOfArgumentIn(EngineCommandArgument argument, string[] arguments)
{
return IndexOfArgumentIn(argument.invokeString, arguments);
return IndexOfArgument(argument.invokeString, arguments);
}
/// <summary>