+ RunUO 2.7 with initial TOL expansion support.
This commit is contained in:
parent
64272798c3
commit
7af0579875
41 changed files with 3181 additions and 499 deletions
|
|
@ -521,6 +521,22 @@ namespace Server
|
|||
#endregion
|
||||
|
||||
#region Get[Something]
|
||||
public static double GetXMLDouble(string doubleString, double defaultValue)
|
||||
{
|
||||
try
|
||||
{
|
||||
return XmlConvert.ToDouble(doubleString);
|
||||
}
|
||||
catch
|
||||
{
|
||||
double val;
|
||||
if (double.TryParse(doubleString, out val))
|
||||
return val;
|
||||
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
public static int GetXMLInt32( string intString, int defaultValue )
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue