Refactor, fix chat scroll, rework automatic update system, remove manual install method, add documentation

This commit is contained in:
John Gross
2017-07-06 14:44:29 -07:00
parent 79fe6a08ab
commit 7373dd37a6
31 changed files with 594 additions and 322 deletions

View File

@@ -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);
}
}