This commit is contained in:
2024-09-28 20:11:56 +03:00
parent 5136f08dab
commit 672bb1ff6d
95 changed files with 741 additions and 601 deletions
@@ -0,0 +1,45 @@
using Ragon.Client;
using Ragon.Protocol;
namespace Ragon.Tests;
public class FakeClientNetwork: INetworkConnection
{
public void Close()
{
throw new NotImplementedException();
}
public INetworkChannel Reliable { get; }
public INetworkChannel Unreliable { get; }
public Action<byte[]> OnData { get; set; }
public Action OnConnected { get; set; }
public Action<RagonDisconnect> OnDisconnected { get; set; }
public ulong BytesSent { get; }
public ulong BytesReceived { get; }
public int Ping { get; }
public void Prepare()
{
throw new NotImplementedException();
}
public void Connect(string address, ushort port, uint protocol)
{
}
public void Disconnect()
{
}
public void Update()
{
}
public void Dispose()
{
}
}