generic pooled enumerators

guild event bcp
This commit is contained in:
Mark Sturgill 2013-10-15 21:15:59 -07:00
parent 42bdaae3f1
commit 88488bc616
9 changed files with 645 additions and 476 deletions

View file

@ -249,7 +249,7 @@ namespace Server.Items
if ( direct )
alchemyBonus = (int)(from.Skills.Alchemy.Value / (Core.AOS ? 5 : 10));
IPooledEnumerable eable = LeveledExplosion ? map.GetObjectsInRange( loc, ExplosionRange ) : map.GetMobilesInRange( loc, ExplosionRange );
IPooledEnumerable eable = LeveledExplosion ? (IPooledEnumerable)map.GetObjectsInRange( loc, ExplosionRange ) : (IPooledEnumerable)map.GetMobilesInRange( loc, ExplosionRange );
ArrayList toExplode = new ArrayList();
int toDamage = 0;

View file

@ -687,9 +687,9 @@ namespace Server.Guilds
pm.SendGump( new GuildInfoGump( pm, pm.Guild as Guild ) );
}
public static BaseGuild EventSink_CreateGuild( CreateGuildEventArgs args )
public static void EventSink_CreateGuild(CreateGuildEventArgs args)
{
return (BaseGuild)(new Guild( args.Id ));
args.Guild = new Guild(args.Id);
}
#endregion

View file

@ -2592,7 +2592,7 @@ namespace Server.Mobiles
#if Framework_4_0
object valLock = new object();
Parallel.ForEach( eable.Cast<Mobile>(), m => {
Parallel.ForEach(eable, m => {
if (m.Deleted || m.Blessed)
return;