fix: Prepares for IPooledEnumerable removal (#1548)
### Summary - Removes `IPooledEnumerable` (non-generic) - Changes `IPooledEnumerable<T>` so that `Free()` is replaced with the `IDisposable` pattern
This commit is contained in:
parent
c2d6578955
commit
d57f1fecc1
92 changed files with 644 additions and 907 deletions
|
|
@ -82,8 +82,6 @@ public static class Effects
|
|||
OutgoingEffectPackets.CreateSoundEffect(buffer, soundID, p);
|
||||
state.Send(buffer);
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -127,8 +125,6 @@ public static class Effects
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
public static void SendLocationEffect(
|
||||
|
|
@ -196,8 +192,6 @@ public static class Effects
|
|||
state.Send(regular);
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
public static void SendTargetEffect(IEntity target, int itemID, int speed, int duration, int hue = 0, int renderMode = 0)
|
||||
|
|
@ -258,8 +252,6 @@ public static class Effects
|
|||
state.Send(regular);
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
public static void SendMovingEffect(
|
||||
|
|
@ -478,8 +470,6 @@ public static class Effects
|
|||
state.Send(regular);
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
public static void SendPacket(Point3D origin, Map map, Span<byte> effectBuffer)
|
||||
|
|
@ -496,7 +486,5 @@ public static class Effects
|
|||
state.Mobile.ProcessDelta();
|
||||
state.Send(effectBuffer);
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue