Adds better type support for pooled enumerables. Refactors code. (#16)
This commit is contained in:
parent
62b95f4d74
commit
b06f5bf60d
48 changed files with 252 additions and 243 deletions
|
|
@ -30,11 +30,11 @@ namespace Server.Items
|
|||
|
||||
private static bool FindMarkContainer( Point3D p, Map map )
|
||||
{
|
||||
IPooledEnumerable eable = map.GetItemsInRange( p, 0 );
|
||||
IPooledEnumerable<MarkContainer> eable = map.GetItemsInRange<MarkContainer>( p, 0 );
|
||||
|
||||
foreach ( Item item in eable )
|
||||
{
|
||||
if ( item.Z == p.Z && item is MarkContainer )
|
||||
if ( item.Z == p.Z )
|
||||
{
|
||||
eable.Free();
|
||||
return true;
|
||||
|
|
@ -264,4 +264,4 @@ namespace Server.Items
|
|||
m_Description = reader.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue