using System.IO; namespace TShockAPI.Handlers.NetModules { /// /// Describes a handler for a net module /// public interface INetModuleHandler { /// /// Reads the net module's data from the given stream /// /// void Deserialize(MemoryStream data); /// /// Provides handling for the packet and determines if it should be accepted or rejected /// /// /// void HandlePacket(TSPlayer player, out bool rejectPacket); } }