fix(core): Removes some uses of Linq (#421)
- [X] Removes some uses of linq - [X] Creates struct based enumerator for Skills - [X] Creates a struct based enumerator for TypeCache - [X] Changes HarvestDefinition to an init array instead of List - [X] Changes HeritageTokenGump Response from List to Array
This commit is contained in:
parent
52356866ed
commit
b921c38879
50 changed files with 1006 additions and 507 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Server.Engines.ConPVP;
|
||||
using Server.Factions;
|
||||
using Server.Gumps;
|
||||
|
|
@ -294,9 +293,12 @@ namespace Server.Engines.Help
|
|||
|
||||
private static void EventSink_HelpRequest(Mobile m)
|
||||
{
|
||||
if (m.NetState.Gumps.OfType<HelpGump>().Any())
|
||||
foreach (var gump in m.NetState.Gumps)
|
||||
{
|
||||
return;
|
||||
if (gump is HelpGump)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!PageQueue.CheckAllowedToPage(m))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue