🐛 prediction spawning for wrong connection, payload capacity

This commit is contained in:
2024-01-04 23:29:35 +03:00
parent 2dcb047014
commit c64cc61c78
7 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ public class RagonPayload
public void Read(RagonBuffer buffer)
{
_size = buffer.Capacity - 1;
_size = buffer.Capacity;
buffer.ReadArray(_data, _size);
}
+1 -1
View File
@@ -39,7 +39,7 @@ public class RagonEvent
public void Read(RagonBuffer buffer)
{
_size = buffer.Capacity - 1;
_size = buffer.Capacity;
buffer.ReadArray(_data, _size);
}
@@ -0,0 +1,9 @@
namespace Ragon.Server.Logging;
public interface IRagonLogger
{
public void Warning(string tag, string message);
public void Info(string tag, string message);
public void Error(string tag, string message);
public void Trace(string tag, string message);
}