Added packet buffering

This commit is contained in:
high 2011-08-02 17:16:56 -04:00
parent b9cb3e69e1
commit 1d042fccaa
5 changed files with 120 additions and 6 deletions

19
TShockAPI/LinqExt.cs Normal file
View file

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TShockAPI
{
public static class LinqExt
{
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
{
if (source == null) throw new ArgumentNullException("source");
if (action == null) throw new ArgumentNullException("action");
foreach (T item in source)
action(item);
}
}
}