Fix voice and add Server.Forward() and Server.SendToAll()

This commit is contained in:
Sardelka
2022-08-13 08:56:05 +08:00
parent f9a411833a
commit 4dc3cc5c28
4 changed files with 17 additions and 10 deletions

View File

@ -10,14 +10,11 @@ namespace RageCoop.Core
public override PacketType Type => PacketType.Voice;
public override byte[] Serialize()
{
var data = new List<byte>();
data.AddArray(Buffer);
return data.ToArray();
return Buffer;
}
public override void Deserialize(byte[] array)
{
var reader = new BitReader(array);
Buffer = reader.ReadByteArray();
Buffer = array;
}
}
}