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
|
|
@ -15,7 +15,7 @@ namespace Server.Commands
|
|||
|
||||
public static bool FindMorphItem( int x, int y, int z, int inactiveItemID, int activeItemID )
|
||||
{
|
||||
IPooledEnumerable eable = Map.Felucca.GetItemsInRange( new Point3D( x, y, z ), 0 );
|
||||
IPooledEnumerable<Item> eable = Map.Felucca.GetItemsInRange( new Point3D( x, y, z ), 0 );
|
||||
|
||||
foreach ( Item item in eable )
|
||||
{
|
||||
|
|
@ -49,7 +49,7 @@ namespace Server.Commands
|
|||
|
||||
public static Item TryCreateItem( int x, int y, int z, Item srcItem )
|
||||
{
|
||||
IPooledEnumerable eable = Map.Felucca.GetItemsInBounds( new Rectangle2D( x, y, 1, 1 ) );
|
||||
IPooledEnumerable<Item> eable = Map.Felucca.GetItemsInBounds( new Rectangle2D( x, y, 1, 1 ) );
|
||||
|
||||
foreach ( Item item in eable )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue