generic enumerable refactor
This commit is contained in:
parent
88488bc616
commit
f5f24d3a92
5 changed files with 56 additions and 56 deletions
|
|
@ -70,7 +70,7 @@ namespace Server
|
|||
{
|
||||
Packet playSound = null;
|
||||
|
||||
IPooledEnumerable eable = map.GetClientsInRange( new Point3D( p ) );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange( new Point3D( p ) );
|
||||
|
||||
foreach ( NetState state in eable ) {
|
||||
state.Mobile.ProcessDelta();
|
||||
|
|
@ -108,7 +108,7 @@ namespace Server
|
|||
|
||||
Packet preEffect = null, boltEffect = null, playSound = null;
|
||||
|
||||
IPooledEnumerable eable = map.GetClientsInRange( e.Location );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange(e.Location);
|
||||
|
||||
foreach ( NetState state in eable ) {
|
||||
if ( state.Mobile.CanSee( e ) ) {
|
||||
|
|
@ -178,7 +178,7 @@ namespace Server
|
|||
{
|
||||
Packet particles = null, regular = null;
|
||||
|
||||
IPooledEnumerable eable = map.GetClientsInRange( e.Location );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange(e.Location);
|
||||
|
||||
foreach ( NetState state in eable ) {
|
||||
state.Mobile.ProcessDelta();
|
||||
|
|
@ -248,7 +248,7 @@ namespace Server
|
|||
{
|
||||
Packet particles = null, regular = null;
|
||||
|
||||
IPooledEnumerable eable = map.GetClientsInRange( target.Location );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange(target.Location);
|
||||
|
||||
foreach ( NetState state in eable ) {
|
||||
state.Mobile.ProcessDelta();
|
||||
|
|
@ -320,7 +320,7 @@ namespace Server
|
|||
{
|
||||
Packet particles = null, regular = null;
|
||||
|
||||
IPooledEnumerable eable = map.GetClientsInRange( from.Location );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange(from.Location);
|
||||
|
||||
foreach ( NetState state in eable ) {
|
||||
state.Mobile.ProcessDelta();
|
||||
|
|
@ -350,7 +350,7 @@ namespace Server
|
|||
public static void SendPacket( Point3D origin, Map map, Packet p )
|
||||
{
|
||||
if ( map != null ) {
|
||||
IPooledEnumerable eable = map.GetClientsInRange( origin );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange(origin);
|
||||
|
||||
p.Acquire();
|
||||
|
||||
|
|
@ -369,7 +369,7 @@ namespace Server
|
|||
{
|
||||
if ( map != null )
|
||||
{
|
||||
IPooledEnumerable eable = map.GetClientsInRange( new Point3D( origin ) );
|
||||
IPooledEnumerable<NetState> eable = map.GetClientsInRange(new Point3D(origin));
|
||||
|
||||
p.Acquire();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue