fix(core): Converts to ref struct enumerators (#426)
- [X] Converts boat moving entities to ref struct enumerator - [X] Converts skills to a ref struct enumerator - [X] Converts type cache to ref struct enumerator
This commit is contained in:
parent
c6ef6ff80a
commit
9ef7752beb
13 changed files with 352 additions and 198 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Server.Gumps;
|
||||
using Server.Mobiles;
|
||||
using Server.Multis;
|
||||
|
|
@ -2251,7 +2250,15 @@ namespace Server.Items
|
|||
|
||||
if (obj is List<HousePlacementEntry> list)
|
||||
{
|
||||
return list.FirstOrDefault(e => e.MultiID == house.ItemID);
|
||||
foreach (var hpe in list)
|
||||
{
|
||||
if (hpe.MultiID == house.ItemID)
|
||||
{
|
||||
return hpe;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (obj is Dictionary<int, HousePlacementEntry> table)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue