24 lines
491 B
C#
24 lines
491 B
C#
using System;
|
|
|
|
namespace RebootKit.Engine.Multiplayer {
|
|
public enum SendMode {
|
|
Reliable,
|
|
Unreliable
|
|
}
|
|
|
|
public interface INetworkTransport {
|
|
void Initialize();
|
|
void Shutdown();
|
|
|
|
bool IsServer();
|
|
bool IsClient();
|
|
|
|
bool StartServer();
|
|
void StopServer();
|
|
|
|
bool Connect(ulong serverID);
|
|
void Disconnect();
|
|
|
|
void Send(ulong clientID, ArraySegment<byte> data, SendMode mode);
|
|
}
|
|
} |