Refactor stuff, clean up managers
This commit is contained in:
22
Torch.API/Managers/INetworkManager.cs
Normal file
22
Torch.API/Managers/INetworkManager.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VRage;
|
||||
using VRage.Library.Collections;
|
||||
using VRage.Network;
|
||||
|
||||
namespace Torch.API.Managers
|
||||
{
|
||||
public interface INetworkManager : IManager
|
||||
{
|
||||
void RegisterNetworkHandler(INetworkHandler handler);
|
||||
}
|
||||
|
||||
public interface INetworkHandler
|
||||
{
|
||||
bool CanHandle(CallSite callSite);
|
||||
bool Handle(ulong remoteUserId, CallSite site, BitStream stream, object obj, MyPacket packet);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user