Refactor, fix chat scroll, rework automatic update system, remove manual install method, add documentation
This commit is contained in:
@@ -9,14 +9,30 @@ using VRage.Network;
|
||||
|
||||
namespace Torch.API.Managers
|
||||
{
|
||||
/// <summary>
|
||||
/// API for the network intercept.
|
||||
/// </summary>
|
||||
public interface INetworkManager : IManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Register a network handler.
|
||||
/// </summary>
|
||||
void RegisterNetworkHandler(INetworkHandler handler);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handler for multiplayer network messages.
|
||||
/// </summary>
|
||||
public interface INetworkHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns if the handler can process the call site.
|
||||
/// </summary>
|
||||
bool CanHandle(CallSite callSite);
|
||||
|
||||
/// <summary>
|
||||
/// Processes a network message.
|
||||
/// </summary>
|
||||
bool Handle(ulong remoteUserId, CallSite site, BitStream stream, object obj, MyPacket packet);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user