Lots of little stuff..

Generics
Misc tweaks/fixes
This commit is contained in:
mark 2006-12-28 19:32:01 +00:00
parent 8da138d6ed
commit 455fa28f48
16 changed files with 99 additions and 219 deletions

View file

@ -19,9 +19,9 @@
***************************************************************************/
using System;
using System.Collections;
using Server.Network;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Server.Network;
namespace Server
{
@ -37,9 +37,9 @@ namespace Server
public static Race Human { get { return m_Races[0]; } }
public static Race Elf { get { return m_Races[1]; } }
private static ArrayList m_AllRaces = new ArrayList();
private static List<Race> m_AllRaces = new List<Race>( 2 );
public static ArrayList AllRaces { get { return m_AllRaces; } }
public static List<Race> AllRaces { get { return m_AllRaces; } }
private int m_RaceID, m_RaceIndex;
@ -90,7 +90,7 @@ namespace Server
for( int i = 0; i < m_AllRaces.Count; ++i )
{
Race race = (Race)m_AllRaces[i];
Race race = m_AllRaces[i];
m_RaceNames[i] = race.Name;
m_RaceValues[i] = race;

View file

@ -21,9 +21,9 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Diagnostics;
namespace Server
{