public static HousePlacementEntry Find( BaseHouse house )
{
object obj = m_Table[house.GetType()];
if ( obj is HousePlacementEntry )
{
return ((HousePlacementEntry)obj);
}
else if ( obj is ArrayList )
{
ArrayList list = (ArrayList)obj;
for ( int i = 0; i < list.Count; ++i )
{
HousePlacementEntry e = (HousePlacementEntry)list[i];
if ( e.m_MultiID == house.ItemID )
return e;
}
}
else if ( obj is Hashtable )
{
Hashtable table = (Hashtable)obj;
obj = table[house.ItemID];
if ( obj is HousePlacementEntry )
return (HousePlacementEntry)obj;
}
return null;
}