Replaces types with built-in types.

This commit is contained in:
Kamron Batman 2018-09-14 13:22:16 -07:00
parent fee83ce560
commit 22ab83ea9e
98 changed files with 248 additions and 248 deletions

View file

@ -207,11 +207,11 @@ namespace Server.Commands
}
int index = 0;
string file = String.Concat( name, ext );
string file = string.Concat( name, ext );
while( File.Exists( Path.Combine( root, file ) ) )
{
file = String.Concat( name, ++index, ext );
file = string.Concat( name, ++index, ext );
}
return file;
@ -370,7 +370,7 @@ namespace Server.Commands
aliased = realType.Name;
}
string retval = String.Concat( prepend, aliased, append, name );
string retval = string.Concat( prepend, aliased, append, name );
//Console.WriteLine(">> getpair: "+retval);
return retval;
}
@ -1947,16 +1947,16 @@ namespace Server.Commands
private const string HtmlNewLine = "
";
private static object[,] m_Tooltips = {
{ typeof( Byte ), "Numeric value in the range from 0 to 255, inclusive." },
{ typeof( SByte ), "Numeric value in the range from negative 128 to positive 127, inclusive." },
{ typeof( UInt16 ), "Numeric value in the range from 0 to 65,535, inclusive." },
{ typeof( Int16 ), "Numeric value in the range from negative 32,768 to positive 32,767, inclusive." },
{ typeof( UInt32 ), "Numeric value in the range from 0 to 4,294,967,295, inclusive." },
{ typeof( Int32 ), "Numeric value in the range from negative 2,147,483,648 to positive 2,147,483,647, inclusive." },
{ typeof( UInt64 ), "Numeric value in the range from 0 through about 10^20." },
{ typeof( Int64 ), "Numeric value in the approximate range from negative 10^19 through 10^19." },
{ typeof( String ), "Text value. To specify a value containing spaces, encapsulate the value in quote characters:{0}{0}"Spaced text example"" },
{ typeof( Boolean ), "Boolean value which can be either True or False." },
{ typeof( byte ), "Numeric value in the range from 0 to 255, inclusive." },
{ typeof( sbyte ), "Numeric value in the range from negative 128 to positive 127, inclusive." },
{ typeof( ushort ), "Numeric value in the range from 0 to 65,535, inclusive." },
{ typeof( short ), "Numeric value in the range from negative 32,768 to positive 32,767, inclusive." },
{ typeof( uint ), "Numeric value in the range from 0 to 4,294,967,295, inclusive." },
{ typeof( int ), "Numeric value in the range from negative 2,147,483,648 to positive 2,147,483,647, inclusive." },
{ typeof( ulong ), "Numeric value in the range from 0 through about 10^20." },
{ typeof( long ), "Numeric value in the approximate range from negative 10^19 through 10^19." },
{ typeof( string ), "Text value. To specify a value containing spaces, encapsulate the value in quote characters:{0}{0}"Spaced text example"" },
{ typeof( bool ), "Boolean value which can be either True or False." },
{ typeof( Map ), "Map or facet name. Possible values include:{0}{0}- Felucca{0}- Trammel{0}- Ilshenar{0}- Malas" },
{ typeof( Poison ), "Poison name or level. Possible values include:{0}{0}- Lesser{0}- Regular{0}- Greater{0}- Deadly{0}- Lethal" },
{ typeof( Point3D ), "Three-dimensional coordinate value. Format as follows:{0}{0}&quot;(<x value>, <y value>, <z value>)&quot;" }
@ -1971,7 +1971,7 @@ namespace Server.Commands
Type checkType = (Type)m_Tooltips[i, 0];
if ( paramType == checkType )
return String.Format( (string)m_Tooltips[i, 1], HtmlNewLine );
return string.Format( (string)m_Tooltips[i, 1], HtmlNewLine );
}
if ( paramType.IsEnum )
@ -2508,7 +2508,7 @@ namespace Server.Commands
{
// MONO: type.Namespace is null/empty for generic arguments
if ( type.Name == "T" || String.IsNullOrEmpty( type.Namespace ) || m_Namespaces == null )
if ( type.Name == "T" || string.IsNullOrEmpty( type.Namespace ) || m_Namespaces == null )
return true;
if ( type.Namespace.StartsWith( "Server" ) )